Forum: Ruby on Rails Lifetime of Thread object?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0ab6a5abab167b409f58d280dc59a229?d=identicon&s=25 Faisal N Jawdat (Guest)
on 2007-02-08 18: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?


-faisal
This topic is locked and can not be replied to.