What are three ways in which a thread can enter the waiting state? Ans. 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. - Study24x7
Social learning Network
08 Feb 2024 10:18 AM study24x7 study24x7

What are three ways in which a thread can enter the waiting state? Ans. 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 ...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles