What is the difference between yielding and sleeping?

What is the difference between yielding and sleeping?

Fakrudeen
Views: 518 | Community Opinion: 1

Tags..  Java  Yielding  Sleeping

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Deniyan Said..

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.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: