digitalmars.D.learn - synchronized and thread
- reimi gibbons (1/1) May 17 2009 if i encapsulate a part of statements within function with synchronized ...
- grauzone (2/3) May 18 2009 The other thread will wait.
if i encapsulate a part of statements within function with synchronized keyword and then let says 1 thread is calling the function, then another thread try to access it, will d put the later thread to wait (sleep) until the 1st call finished it or it will signal failure to access? thanks
May 17 2009
reimi gibbons wrote:if i encapsulate a part of statements within function with synchronized keyword and then let says 1 thread is calling the function, then another thread try to access it, will d put the later thread to wait (sleep) until the 1st call finished it or it will signal failure to access? thanksThe other thread will wait.
May 18 2009