Kernel LabZephyr RTOS 4.4 kernel model
t0ms
CPU0%
Switches0
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.
Scheduler tracerunningready, waitingblockedinherited priogive / puttake / getpend160 ms
0 ms10 ms20 ms30 ms40 ms50 ms60 ms70 ms80 ms90 ms100 ms110 ms120 ms130 ms140 ms150 msblinkyprio 5idleprio 15