What is the difference between a wait() and sleep() in Threads?
Is my understanding that a wait()-ing Thread is still in runni
One potential big difference between sleep/interrupt and wait/notify is that
Generating an exception when not needed is inefficient. If you have threads communicating with each other at a high rate, then it would be generating a lot of exceptions if you were calling interrupt all the time, which is a total waste of CPU.