Uncontended versus contended std::mutex::lock()

On Linux, calling std::mutex::lock() on an uncontended mutex almost never shows up as a syscall in strace, but under contention it does. What mechanism explains this, and why is it faster than a mutex implemented as a plain kernel object?

24 of 53 in Operating Systems