[CSE]  Advanced Operating Systems 
 COMP9242 2002/S2 
UNSW

PRINTER Printer-Friendly Version
Administration               
- Notices
- Course Intro
- Consultations
# On-line Survey (closed)
- Survey Results
 
Work
- Lectures
- Milestone 0
- Project Admin
- Project Spec
- Project FAQ
- Exam
 
Documentation
- ASysT Lab
- L4 source browser
- Sulima ISA Simulator
R4x00 ISA Summary 
MIPS R4700 ReferenceMIPS R4000 User Manual 
- Network Driver
- GT64111
 
Related Info
- Aurema OS Prize
- OS Hall of Fame
 
History
- 2000
- 1999
- 1998
 
Staff
- Gernot Heiser (LiC)

 
Valid HTML 4.0!
next up previous
Next: Schedulability Up: 10-smp Previous: Real-time OS Issues

Subsections

Simplified Real-Time Process Model

  • Fixed set of processes,
  • all processes periodic with known periods \(T_i\),
  • processes independent (note: no IPC!),
  • ignore system overheads,
  • deadline, \(D_i\), equal to period,
  • fixed (and known) worst-time execution time \(C_i\),
  • \(T_i\), \(D_i\), \(C_i\) are multiples of minor cycle time \(t_0\).
Allows static analysis and a static schedule.

Example

 
Process A B C D E
\(T\) 25 25 50 50 100
\(C\) 10 8 5 4 2

  • Worst case if all come at once: critical instant.
  • Fixed schedule covers one major cycle time \(t_1 =
{\mbox{lcm}}\{D_i\}\).
  • Schedule is just a list of executions ( \(t_0=25, t_1=100\)):
    A, B, C,   A, B, D, E,   A, B, C,   A, B, D.

rt-sched

Note: No preemption ==> no concurrency control necessary!

More flexible alternative: Use priorities

  • Priorities based on timeliness requirements, not ``importance''.
  • Higher-priority processes preempt lower-priority ones.

Frequently used scheme is rate-monotonic priority assignment (RMPA):

  • Priority is based on period: \(T_i < T_j \Rightarrow P_i > P_j\).
  • Is optimal in a sense:
    • Everything that can be scheduled can be done statically by RMPA.
    everything doable statically is doable with RMPA.


next up previous
Next: Schedulability Up: 10-smp Previous: Real-time OS Issues
Gernot Heiser 2002-10-11