|
|
Log in / Subscribe / Register

A new futex API

A new futex API

Posted Aug 15, 2023 18:35 UTC (Tue) by ghodgkins (subscriber, #157257)
In reply to: A new futex API by alison
Parent article: A new futex API

What were the problems described in "Futexes are evil"? The linked slide deck isn't very informative.


to post comments

A new futex API

Posted Aug 16, 2023 4:57 UTC (Wed) by alison (subscriber, #63752) [Link]

The videos are here: https://www.youtube.com/playlist?list=PLbzoR-pLrL6oauKOYM...

"Futexes are cursed" as I recall was basically about the difficulty of fixing them in the kernel, and "Pthread Condvars" was about the difficulty of fixing them in glibc. Problems, as described by the reliably excellent LWN article, were false (misordered) wakeups and no ability to implement priority inheritance. The root cause is too fee bits to indicate state, as is so often the case for older APIs. Recently I have thought that it's too bad that the kernel chose not to break the futex() ABI at the same time it essentially forced distros to switch to 64-bit time.


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