← BYTES
Unix IPC·Starter·Ref: 15.1.64
What is a futex, in the simplest terms?
Have a question about this video? Mention reference 15.1.64 when you contact us.
Your code calls: pthread_mutex_lock()
|
v
(built on top of)
|
v
futex() <-- the low-level kernel primitivea.A deprecated file format for configuration files
b.A command for formatting a USB drive
c.A type of graphics card driver
d.A Linux kernel mechanism ('fast userspace mutex') used as the low-level building block most higher-level locking primitives like mutexes are actually implemented on top of
futex is the Linux kernel primitive that underlies most higher-level locking constructs (like pthread mutexes) -- its name literally means 'fast userspace mutex,' hinting at its key design goal of avoiding a kernel call in the common, uncontended case, covered in depth in later questions.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES15164#UnixIPC