News for hackers. Stuff that matters.
Re:Without the Futex, It's Futile by immibis on Thursday August 21, 2025 @05:13PM (#44978175)
This sort of thing can be implemented in the kernel without special hardware operations by adding the thread to the wake list, then suspending the thread, then checking the value. If the value has changed, undo that and return, else just return leaving the thread suspended. Special hardware multi-atomic instructions are not required, but the details are very dependent on how kernel's thread switching is designed.

There are no comments on this comment yet.