InterviewSolution
Saved Bookmarks
| 1. |
Which Three Ways In Which A Thread Can Enter The Waiting State In Java Programming? |
|
Answer» A thread can enter the waiting state by invoking its sleep() method, by BLOCKING on I/O, by unsuccessfully ATTEMPTING to acquire an OBJECT's lock, or by invoking an object's WAIT() method. It can also enter the waiting state by invoking its (deprecated) suspend() method. A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method. |
|