What is the difference between a wait()
and sleep()
in Threads?
Is my understanding that a wait()
-ing Thread is still in runni
wait
and sleep
methods are very different:
Come to think about it, the names are confusing in that respect; however sleep
is a standard name and wait
is like the WaitForSingleObject or WaitForMultipleObjects in the Win API.