[an error occurred while processing this directive] 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]