O'Reilly logo
  • Dong Yu thinks this is interesting:

In other words, if the notify() method is called when no other thread is waiting, notify() simply returns and the notification is lost. A thread that later executes the wait() method has to wait for another notification to occur.


Cover of Java Threads, 3rd Edition


the notify method's characteristics