Previous: , Up: Multithreading   [Contents][Index]


15.6 Optimizations of multithreaded code

Despite all the optimizations of multithreading primitives that have been implemented over the years – from atomic operations in hardware, over futexes and restartable sequences in the Linux kernel, to lock elision [1] [2]) – single-threaded programs can still profit performance-wise from the assertion that they are single-threaded.

Gnulib defines four facilities that help optimizing for the single-threaded case.


Previous: The Gnulib multithreading API, Up: Multithreading   [Contents][Index]