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
Here wait() will be in the waiting state till it notify by another Thread but where as sleep() will be having some time..after that it will automatically transfer to the Ready state...