Rethinking the futex API
Rethinking the futex API
Posted Jun 19, 2020 1:25 UTC (Fri) by HenrikH (subscriber, #31152)In reply to: Rethinking the futex API by ras
Parent article: Rethinking the futex API
How would you wait on multiple futexes effeciently in userspace? You would have to busy wait and spinkle in some sleep(0)/sched_yield() nonsense calls here and there to not waste cpu cycles if none of the futexes are not triggered instead of just having the kernel put your thread to sleep until any of them gets triggered.
