What is a Real-Time Operating System (RTOS), and how does its scheduler differ from a standard OS?
Last updated
A standard OS scheduler (e.g. Linux
CFS) optimizes average throughput and fairness, so it may delay a task for overall progress.An RTOS scheduler guarantees deadlines with bounded worst-case latency using strict priority preemption. Typical policies are Rate Monotonic (shorter period = higher priority) and Earliest Deadline First.
It also uses priority inheritance or priority ceiling to prevent priority inversion, trading general throughput and flexibility for predictability.