Rate-monotonic scheduling (RMS) is a static priority algorithm used in real‑time operating systems to schedule periodic tasks. Under RMS, each task is assigned a priority based on its request rate (or period): the shorter the period, the higher the priority. The algorithm is preemptive; a higher‑priority task can interrupt a lower‑priority one at any time.
Key characteristics
- Deterministic priority assignment – Priorities are fixed at design time and do not change during execution.
- Periodic task model – RMS assumes a set of independent, periodic tasks, each characterized by a period T₁, worst‑case execution time C₁, and relative deadline equal to its period.
- Optimality for fixed‑priority scheduling – Among all fixed‑priority scheduling algorithms, RMS is provably optimal for guaranteeing task set schedulability when deadlines equal periods (Liu & Layland, 1973).
- Utilization bound – A set of n independent periodic tasks is guaranteed to be schedulable under RMS if the total CPU utilization U satisfies
$$ U = \sum_{i=1}^{n} \frac{C_i}{T_i} \le n,(2^{1/n} - 1) $$
For large n, this bound approaches ln 2 ≈ 0.693, meaning that up to about 69 % processor utilization can be safely achieved under the worst‑case assumptions.
Assumptions and limitations
- Tasks are independent (no resource sharing, no precedence constraints).
- Context‑switch overhead is negligible or explicitly accounted for in C₁.
- Deadlines are equal to periods; if deadlines are shorter than periods, the basic RMS analysis no longer applies without modification.
- The algorithm does not handle aperiodic or sporadic tasks directly; such work is typically managed by auxiliary servers (e.g., sporadic server, deferrable server).
Historical context
The RMS concept was introduced in the seminal 1973 paper “Scheduling Algorithms for Multiprogramming in a Hard‑Real‑Time Environment” by C. L. Liu and James W. Layland. Their analysis established the utilization bound and demonstrated RMS’s optimality within the class of fixed‑priority algorithms.
Practical use
RMS is employed in many embedded and safety‑critical systems, such as automotive control units, avionics, industrial automation, and medical devices. Real‑time operating systems (RTOS) like VxWorks, QNX, and FreeRTOS provide built‑in support for RMS or allow developers to configure static priorities accordingly.
Extensions and related work
- Deadline‑Monotonic Scheduling (DMS) – Assigns priorities based on relative deadlines rather than periods, useful when deadlines differ from periods.
- Response‑Time Analysis – Extends RMS analysis to compute worst‑case response times for each task, enabling verification of schedulability beyond the simple utilization bound.
- Concurrency control – Protocols such as Priority Inheritance Protocol (PIP) and Priority Ceiling Protocol (PCP) are often combined with RMS to mitigate priority inversion when tasks share resources.
References
- Liu, C. L.; Layland, J. W. (1973). “Scheduling Algorithms for Multiprogramming in a Hard‑Real‑Time Environment”. Journal of the ACM. 20 (1): 46–61.
- Sha, L.; Rajkumar, R.; Lehoczky, J. P. (1990). “Priority Inheritance Protocols: An Approach to Real‑Time Synchronization”. IEEE Transactions on Computers. 39 (9): 1175–1185.