ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

Round Robin scheduling explained

Unlike many other RTOSes, ChibiOS/RT supports multiple threads at the same priority level and schedules them using an aggressive round-robin strategy.
The strategy is defined as aggressive because any scheduling event causes the round-robin threads to rotate.
A round-robin rotation can happen because of the following events:

As you can see the CH_TIME_QUANTUM setting is really useful only if there are threads at the same priority level that can run not preempted for long periods of time and that do not explicitly yield using chThdYield(). Because of this you should consider setting CH_TIME_QUANTUM to zero in your configuration file, this makes the kernel much faster and smaller and does not forbid the use of multiple threads at the same priority level.


Generated on Sun Oct 24 2010 09:40:45 for ChibiOS/RT by doxygen 1.7.1