|
|
Subscribe / Log in / New account

The right way to yield

The right way to yield

Posted May 8, 2003 18:32 UTC (Thu) by spitzak (guest, #4593)
In reply to: The right way to yield by Xman
Parent article: The right way to yield

I don't think it is just doing busy/wait, but actually doing background
calculations. I would also like somebody to post what the "replacement
code" is. I did not know about sched_yield, but if I did I certainly
would have used it the same as Open Office did, and had trouble with this
change. Currently I use select() with a zero timeout, or do nothing at
all, when I have a big calculation and want to indicate that it is not
really important that it be done as fast as possible.


to post comments


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