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

Q

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

✍: Guest

A

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.

2013-01-17, 1978👍, 0💬