RTOS Masterclass Syllabus
Study our curated 10-chapter, 35-topic curriculum where every single lesson features unique architecture deep dives, runnable code, trace simulations, interactive visualizers, and knowledge quizzes.
Course Progress
0%Completed 0 of 35 topics across all chapters.
Curriculum Directory
10 ChaptersHard, Firm, and Soft Real-Time Determinism
Why determinism—not raw clock speed—defines a real-time operating system and deadline classification.
Superloop vs. RTOS Kernel Architecture
Architectural trade-offs between bare-metal foreground/background loops and preemptive RTOS kernels.
RTOS Kernel Footprint & SysTick Heartbeat
Understanding configTICK_RATE_HZ, SysTick timer interrupts, PendSV context switches, and kernel RAM/ROM cost.
Idle Task, Idle Hook & CPU Utilization
How the priority-0 Idle Task reclaims deleted task memory, enters sleep modes, and measures free CPU headroom.
Executable Sandboxed Compiler
Test and execute raw scripts, input custom arguments via standard input, and experience rapid platform compiles with our compilers!
Open Sandbox CompilerHard, Firm, and Soft Real-Time Determinism
Why determinism—not raw clock speed—defines a real-time operating system and deadline classification.
Study the theory below. Adjust parameters on the Interactive Visualization Panel to the right to see the core concepts behave in real-time.
What Makes a System "Real-Time"?
A common misconception is that a real-time system simply means fast. In embedded engineering, real-time means deterministic: an operation is guaranteed to complete within a bounded worst-case time window (its deadline), regardless of system load.
Deadline Classifications
- Hard Real-Time: Missing a single deadline results in catastrophic failure, physical damage, or safety hazards. Examples: automotive airbag deployment (< 15 ms), ABS brake modulation, or industrial servo current loops.
- Firm Real-Time: Infrequent deadline misses do not cause physical catastrophe, but the late result becomes completely worthless and must be discarded. Examples: dropped video frames in a vision inspector or stale telemetry packets.
- Soft Real-Time: Performance degrades gracefully when deadlines slip; late outputs still retain partial utility. Examples: updating a smart thermostat LCD or logging temperature to an SD card.
| Criterion | General-Purpose OS (Linux/Windows) | Hard Real-Time RTOS (FreeRTOS/Zephyr) |
|---|---|---|
| Optimization Goal | Maximize average throughput & fairness | Bound Worst-Case Execution Time (WCET) & jitter |
| Scheduling Policy | Fair-share CFS / dynamic time boost | Strict preemptive fixed-priority scheduling |
| Interrupt Latency | Milliseconds (unbounded under paging) | Sub-microsecond to low microseconds (bounded) |
| Memory Paging | Virtual memory with swap / page faults | Flat physical SRAM, deterministic allocation |
Measuring Jitter
Jitter is the variance between minimum and maximum response times across cycles. A fast loop averaging 50 µs that occasionally spikes to 40 ms due to garbage collection or USB polling fails hard real-time guarantees.
Live Concept Simulator
ActiveAdjust priority levels below and toggle Priority Inheritance to see how the Scheduler allocates CPU cycles dynamically.