Tuesday, November 29, 2011

What is the difference between yielding and sleeping?

When a task invokes its yield() method, it returns to the ready state. When a task invoke sits sleep() method, it returns to the waiting state.
Category:Java Interview Questions

No comments:

Post a Comment