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.