The Idle task and the idle task hook
Abstract
In FreeRTOS when all the tasks are in blocked state, there must be at least one task that can enter into the Running state at any time, and this task is known as the Idle task. The Idle task is automatically created when function vTaskStartScheduler() is called. The Idle task consists of a simple loop and it has the lowest priority of 0 so that it cannot prevent any other task in the system to run. The Idle task is forced out of the Running state as soon as a higher priority task enters the Ready state. The Idle task is responsible for cleaning up kernel resources after a task has been deleted. This chapter is about the Idle task. This chapter describes the reason for the existence of the ...
Get ARM-Based Microcontroller Multitasking Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.