forum

Home / DeveloperSection / Forums / What is Difference between wait() and sleep()

What is Difference between wait() and sleep()

Anonymous User 1977 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?

Updated on 03-Jul-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By