Skip to Content
Solaris™ Internals: Core Kernel Components
book

Solaris™ Internals: Core Kernel Components

by Jim Mauro, Richard McDougall
October 2000
Intermediate to advanced
704 pages
18h 44m
English
Pearson
Content preview from Solaris™ Internals: Core Kernel Components

3.7. Turnstiles and Priority Inheritance

A turnstile is a data abstraction that encapsulates sleep queues and priority inheritance information associated with mutex locks and reader/writer locks. The mutex and RW lock code use a turnstile when a kernel thread needs to block on a requested lock. The sleep queues implemented for other resource waits do not provide an elegant method of dealing with the priority inversion problem through priority inheritance. Turnstiles were created to address that problem.

Priority inversion describes a scenario in which a higher-priority thread is unable to run because a lower-priority thread is holding a resource it needs, such as a lock. The Solaris kernel addresses the priority inversion problem in its turnstile ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Solaris™ Internals: Solaris 10 and OpenSolaris Kernel Architecture, Second Edition

Solaris™ Internals: Solaris 10 and OpenSolaris Kernel Architecture, Second Edition

Jim Mauro, Richard McDougall
Linux Device Drivers

Linux Device Drivers

Alessandro Rubini

Publisher Resources

ISBN: 0130224960Purchase book