Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

yielding and sleeping

Thu Nov 06, 2008 4:24 pm

What is the difference between yielding and sleeping?



Re: yielding and sleeping

Thu Nov 06, 2008 4:25 pm

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.

Post a reply