How can I control which waiting thread is notified when I call notify()?
John Zukowski There is no way to control which thread is notified when you call notify(). Neither thread priorities nor order of entering wait() determine what is notified first.
[Any pattern you may notice is platform-specific and should not be relied upon. -Alex]