Basics · experiment 1 of 54
A thread
One thread blinks an LED: it works for 3 ms, then sleeps for 7 ms. While it sleeps, the CPU has nothing to do and runs the idle thread.
Step 1 of 3Running. The next step is at 0 ms.
blinky starts and gets the CPU. Its token sits in the CPU box, and its row on the trace goes high.
Running. The next step is at 0 ms.
Scheduler state
CPU 0
idle (WFI)
Ready queue0waiting for the CPU
empty
Pending0waiting on an object
nobody waiting
Sleeping0waiting for a timeout
none
Inactive1suspended or exited
blinky5starts t=0
Kernel objects
This experiment uses no kernel objects. Only priorities decide what runs.