notify() method
Thursday, August 20, 2009
The methods wait() and notify() are instance methods of an object. In the same way that every object has a lock, every object has a list of threads that are waiting for a signal related to the object. A thread gets on this list by executing the wait() method of the object. From that moment, it does not execute any further instructions until some other thread calls the notify() method of the same object.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment