Forum: Ruby on Rails Lifetime of Thread object?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Faisal N Jawdat (Guest)
on 2007-02-08 19:55
(Received via mailing list)
Does anyone have a good description of how long a given Thread lives
in the context of a request to a RoR application?  Specifically:

- Do I know that a given request only uses one Thread? (unless I
explicitly fork another one in my code)

- Do I know that a given Thread only lasts for one request?

- If I cram some data into Thread.current early-on in processing the
request, do I know that this data will be available to objects later
in the request, and the data won't be available to (or overwritten
by) another request?

This topic is locked and can not be replied to.