Organizational Research By

Surprising Reserch Topic

Difference between wait() and sleep()


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?


asked May 9, 2015 in Asp.Net by rajesh
0 votes
21 views



Related Hot Questions

3 Answers

0 votes
NULL
answered May 9, 2015 by rajesh
0 votes
NULL
answered May 9, 2015 by rajesh
0 votes
NULL
answered May 9, 2015 by rajesh

...