Page 32 of 66
Multithreaded Kernel, Mutex and Condition Variables (cont)
Locking Schemes:
- Mutexes and condition variables are found in most Solaris
device drivers
- Another locking scheme is called "readers/writer locks"
(rwlocks)
- rwlocks permit multiple readers but exclusive writing
to a set of data
- But rwlocks are more expensive than mutex locks
- A set of semaphore routines is also available
See Also:
- "Multithreading" in Writing Device Drivers
- "Advanced Topics" (locking performance, deadlocking)
in Writing Device Drivers
FIRST PREVIOUS
NEXT LAST
CONTENTS
Return to White Papers
|