Users Pricing

forum

home / developersection / forums / what is difference between wait() and sleep()

What is Difference between wait() and sleep()

Anonymous User 2474 03 Jul 2015
What is the difference between a wait() and sleep() in Threads?

Is my understanding that a wait()-ing Thread is still in running mode and uses CPU cycles but a sleep()-ing does not consume any CPU cycles correct?

Why do we have both wait() and sleep(): how does their implementation vary at a lower level?

I am a content writter !


1 Answers