A
Aaron Rustad
When two theads enter a method that can change a value of an instance
variable, does the possiblity exist that one thread's changes will
clobber the other's?
The reason stems from the ApplicationController of Rails, when a
request is received, the request is handled by a method that has access
to instance variables (session, request, params). Coming from the
Java/Struts world, this is a concern, and methods should not access
instance variables.
Is there a different model of theading in Ruby, or, would I be missing
something in Rails.
thanks!
AR.
variable, does the possiblity exist that one thread's changes will
clobber the other's?
The reason stems from the ApplicationController of Rails, when a
request is received, the request is handled by a method that has access
to instance variables (session, request, params). Coming from the
Java/Struts world, this is a concern, and methods should not access
instance variables.
Is there a different model of theading in Ruby, or, would I be missing
something in Rails.
thanks!
AR.