Saturday, June 7, 2008

What is the difference between yield() and sleep()?

When a object invokes yield() it returns to ready state. But when an object invokes sleep() method enters to not ready state.

No comments: