What is the difference between a wait() and sleep() in Threads?
wait()
sleep()
Is my understanding that a wait()-ing Thread is still in runni
sleep is a method of Thread, wait is a method of Object, so wait/notify is a technique of synchronizing shared data in Java (using monitor), but sleep is a simple method of thread to pause itself.
sleep
Thread
wait
Object
wait/notify