Basic question on wait & notify
posted 11 years ago
If the method calls wait() on the object it belongs to, yes. When wait() is called, the monitor lock for the object held by the thread is released. When it gets notified, it attempts to reacquire the lock and if successful, exits the wait() method back into the synchronized method/block.