WHAT IS DIFFERENCE BETWEEN WAIT() AND SLEEP()

Derek Honeybun

Total Post:3

Points:15
Posted by  Derek Honeybun
 731  View(s)
Ratings:
Rate this:
  1. Derek Honeybun

    Post:3

    Points:15
    What is 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?

  1. Mayank Tripathi

    Post:807

    Points:4035
    What is Difference between wait() and sleep()

    Refer here :

    http://www.mindstick.com/forum/23317/What%20is%20Difference%20between%20wait%20and%20sleep#.VZatm_mqqko 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!