LWN.net Logo

Short sleeps suffering from slack

Short sleeps suffering from slack

Posted Feb 27, 2012 12:21 UTC (Mon) by jengelh (subscriber, #33263)
In reply to: Short sleeps suffering from slack by cmccabe
Parent article: Short sleeps suffering from slack

select(timeout=0)? That's just as bad as sleep(0). sched_yield() looks a lot better, and since it is also a system call, there is your cancellation point.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds