Tuesday 20 May 2014

What are the ways in which a thread can enter the waiting state ?

A thread can enter the waiting state by:
  • By sleep() method invocation
  • By blocking its input and output 
  • By invoking an object’s wait() method.
  • It can also enter the waiting state by invoking its suspend() method.

No comments:

Post a Comment