1.

Can You Tell Some Ways In Which A Thread Can Enter The Waiting State?

Answer»

A THREAD can ENTER the waiting state by the following WAYS:

  • We can invoke sleep() method of the thread.
  • An attempt to acquire the object’s LOCK can put the thread in waiting MODE.
  • We can also invoke wait() method of the thread.
  • A thread can also be entered in waiting state by invoking its suspend() method.

A thread can enter the waiting state by the following ways:



Discussion

No Comment Found