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.
Download the Study24x7 App, so you can connect and collaborate.