[an error occurred while processing this directive]
Screen Version
School of Computer Science & Engineering
University of New South Wales

 Advanced Operating Systems 
 COMP9242 2002/S2 
next up previous
Next: Locking: Performance Considerations Up: 10-smp Previous: Spin locks

Subsections

Dangers of Locking: Priority Inversion


Solution: Priority inheritance


Wait-free synch. of long critical sections:

Alternative: Lock-free synchronisation:

Best to avoid long critical sections in kernel!

What to lock?

Giant lock:
lock whole kernel.
Coarse-grain locks:
lock whole subsystems.
Fine-grain locks:
lock as little as possible at a time.

All but giant locks can lead to deadlocks!


next up previous
Next: Locking: Performance Considerations Up: 10-smp Previous: Spin locks
Gernot Heiser 2002-10-11
[an error occurred while processing this directive]