What is the difference between yielding and sleeping? Ans. When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state. - Study24x7
Social learning Network
26 Dec 2023 11:39 AM study24x7 study24x7

What is the difference between yielding and sleeping? Ans. When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.

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