School of Computer Science & Engineering
University of New South Wales
Advanced Operating Systems
COMP9242 2002/S2
Next: The Return of the
Up: 14-hot
Previous: Hot Topics
Subsections
E.g.: Timeouts in L4, prefer high resolution.
- Kernel has wakeup queues
- Kernel sets timer interrupt at certain frequency.
- At each interrupt (tick) checks wakeup queue.
- Handling interrupts is costly.
- Handling interrupt pollutes cache.
- Cannot have very high frequency timer ticks.
What can we do?
- Check wakeup queues when cost of handling with them is low.
- This is generally the case when in the kernel already.
- Do it at a time where minimal state needs to be saved.
- Suitable times:
- just before returning from system call,
- at the end of exception handling,
- at the end of interrupt handling,
- in idle loop.
- No absolute, only probabilistic accuracy.
- Actual accuracy depends on frequency of trigger events.
- Can enforce absolute upper bound on delay via timer tick.
Next: The Return of the
Up: 14-hot
Previous: Hot Topics
Gernot Heiser
2002-11-07