Originally posted by Vepa Sritej:
Pls help me with this small doubt:
When notify() is called on an object will the thread waiting on the object comes to Runnable state immediately or will it come to runnable when the lock is released by the currently holding thread.
Pls help Thanks in advance
The thread that got the notification doesn't immediately run -- it still has to reacquire the lock before it can return from the wait() method.
Of course, other issues (like priority) may also prevent it from running too.
Henry