Figure 3—The multitasking
kernel is extended by some higher-priority functions. The scheduler must be
the lowest-priority interrupt. Normal tasks run in time slices without different
priorities. Real-time functions, like the wheel PID controller, need interrupt
functions.