Idea for new VDSO feature: a function to query whether there are tasks waiting to run on the current cpu.
Re: "messing with scheduling", spinning at all is messing with scheduling. The default, polite action would be to always futex_wait.
-
-
Spinning is "I don't have anything to do yet, but let's trick the scheduler so it doesn't let someone else have my cpu time".
-
you say 'trick the scheduler', I say 'sleeping ruins all latency guarantees'.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.