Learn how an RTOS works

Watch a real-time kernel make every scheduling decision, next to the source code that makes it. The simulator below runs line-by-line models of FreeRTOS and Zephyr, checked against the real kernels. Press play, or step through it.

Priority inheritance (mutex) on FreeRTOS V11.3.3

Shown: priority inheritance (mutex). A low-priority task holds a mutex that a high-priority task needs. Read the lesson, or try every scenario in the playground.

Basics

What an RTOS is, and the ideas every other lesson builds on. Start here if real-time kernels are new to you.

Concepts

What a real-time kernel does, on any RTOS. Each lesson runs on the kernels you can switch between.

FreeRTOS

How FreeRTOS does it, in its own source code.

Zephyr

How Zephyr does it, in its own source code.

Glossary

The terms the lessons use.

Playground

Every scenario from the lessons in one simulator, with every parameter open to change: open the scheduler playground.

Resource for learning RTOS

RTOS 101

Books

Courses