Threads Question

HALA MOSTAFA halamostafa at hotmail.com
Sat Jan 25 18:52:24 CET 2003


Hi all,
I have a question regarding threads. For the following piece of code
	{Wait X}
	Y = 5
Suppose there's another thread T in addition to the one waiting on X, and 
that both threads have the same priority.
My question is: When X becomes bound, is it guaranteed that the binding Y=5 
will take place immediately after X is bound, or is it possible that the 
other thread, T, takes control before Y is bound to 5, depending on the 
scheduler?

In other words, is a suspended thread resumed as soon as the variable it's 
waiting for is bound, or can another thread take control?

Thank you





_________________________________________________________________


-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs at mozart-oz.org.





More information about the mozart-users mailing list