The FreeRTOS scheduler and tasks: a conceptual view
Below, the first section introduces the limitations of super-loops and the need for an RTOS. The second section shows how an RTOS extends a super-loop’s basic structures. The third section describes RTOS schedulers and tasks, and how they work.
The need for something more than a super-loop
The super-loop is a real-time system that can handle events and process interrupts, while still meeting timing deadlines. It seems like we achieved a lot with a super-loop, so why even consider something else like an RTOS? Well, it is entirely possible you don’t need to consider anything else! If the system has a limited number of responsibilities and none of them are especially complicated or time-consuming, then there may be no need for anything more sophisticated than a super-loop.
However, an RTOS has an advantage over a super-loop when a system needs to handle multiple events and meet multiple deadlines. RTOSes ease...