Summary
Explore how real locks are implemented in operating systems using hardware instructions and OS primitives like futex and park. Learn about tuning locking mechanisms by examining Linux and Solaris code, and discover different locking strategies on multiprocessors to understand concurrency efficiency.
We'll cover the following...
We'll cover the following...
The approach from previous lesson shows how real locks are built these days: some hardware support, in the form of a more powerful instruction, and some operating system support, e.g., in the form of park() and unpark() primitives on Solaris, or futex on Linux. Of course, the details ...