Search⌘ K

Different OS, Different Support

Explore how different operating systems, particularly Linux, provide support for efficient locking using futex mechanisms. Understand the use of atomic operations and in-kernel queues to manage thread sleep and wake calls, enabling optimized concurrency handling in thread libraries.

We'll cover the following...

You have thus far seen one type of support that an OS can provide in order to build a more efficient lock in a thread library. Other OS’s provide similar support; the details vary.

Futex

For example, Linux provides a futex which is similar to the Solaris interface but provides more in-kernel functionality. Specifically, each futex has associated with it a specific physical memory location, as well as a ...