Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Operating Systems

Real-Time CPU Scheduling

Systems that require results within deadlines. Focuses on deadlines, latency, and periodic tasks. Scheduler must support preemptive, priority-based scheduling.

A real-time system with catastrophic results in case of failure.

Each task has:

  • Processing time tt
  • Deadline dd
  • Period pp
  • Must satisfy: 0tdp0 \le t \le d \le p
  • Rate = 1/p1/p

Where deadlines must never be missed. Single missed deadline implies system failure. Scheduler must have the ability to meet deadlines.

Where deadlines are important but not critical. Occasional misses are acceptable.

Aka. RMS. Priority = inverse of period.

Works only if CPU load is below schedulable limit. Can still miss deadlines.

Aka. EDF. Earlier deadline means higher priority.

System has total TT shares. Each task gets NN shares. Each task is ensured to get N/TN/T fraction of CPU time.