yieldind and sleeping
1 posts in topic
Flat View  Flat View

Posted By:   sudhakar_rao
Posted On:   Monday, September 8, 2003 12:38 AM

what are differences between yieldind and sleeping ?

Re: yieldind and sleeping

Posted By:   David_Bates  
Posted On:   Thursday, September 11, 2003 06:44 AM

If a thread sleeps, it sleeps for at least a certain period of time. It then becomes available to become the active thread again afterwards.

If a thread yields, it gives up control of the processor, but it may immediately become the active thread and start executing again.
About | Sitemap | Contact