One of MasterExam questions in K&B book suggests that wait()/notify() will NOT prevent deadlock.
How can it be?
My understanding that if wait() is called then
thread releases the lock, so it can resolve at least simple deadlock situation with two threads and two objects
I'm looking at example on page 745 (K&B 6)
Can somebody explain please
Thanks,