5.2 Real-time operating systems
What real time means, tasks and their states, how schedulers decide and how to prove deadlines are met, mutexes, semaphores and queues, moving work out of…
Lessons
- RTOS fundamentals · Hard and soft real time, tasks, states, and FreeRTOS versus Zephyr.
- RTOS scheduling and timing · Preemption, context switches, ticks and rate-monotonic analysis.
- RTOS synchronisation primitives · Mutexes, semaphores, queues, event flags and priority inversion.
- ISR-to-task patterns · Deferring work out of interrupts with semaphores, queues and notifications.
- Inside an RTOS kernel · Task control blocks, ready lists, the tick and the context switch.
Project: Insulin pump firmware
A medical device where a late task means a missed dose. You build the pieces a real-time kernel is made of and check each one against the pump's real scenarios: scheduling, deadlines, shared resources, interrupts and the ready list.