K&B states"
When the
Thread waits,it temporarily releases the lock for other threads to use,but it will nedd it again to continue execution.
Once the code has acquired lock on aObject it enters the try block and once wait() is executed,it is added to the waiting queue and the lock is released for other threads.
it waits until it is notified using
now what for the thread needs the lock again??has it left the synchronized code or not??
or it means that there may be other statements in the synchronized block to execute for which it again needs the lock