Hi, 1. Is the wait and notify method called on the thread or on the object? 2. Is it also possible that a thread in the waiting state, never get executed even ater the notify method has called upon it? Clement
best regards,<br />Steven<br />SCJP, SCEA
posted 13 years ago
Clement 1. wait and notify are instance methods of the Object class so they are called on objects not on the class themselves. These methods are called on instances of type Thread. 2. first, you can't call notify on a specific Thread. It is possible that a Thread that had been waiting for a certain condition can get woken up but not executed becasue the condition still has not been met.