Yes. Imagine that you are implementing the "Producer - Consumer" problem p synchronize, wait, and notify. (change) . For 2 manufacturers and 2 users, everyone is waiting on one object monitor (final editing) . The producer calls notifyin this implementation. Now suppose you have two threads that start the manufacturer code path. It is possible that Producer1 calls notifyand wakes up Producer2. Manufacturer2 understands that he cannot perform any work and subsequently cannot call notify. Now you are at an impasse.
() notifyAll , Consumer1 Consumer2 Producer2. , , notifyAll, , , .
, :