Interview Question

Created by admin on Sat, 17/11/2012 - 16:08
Question: 

What is the difference between yielding and sleeping?

Language: 
Answer: 
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.