Basics

FreeRTOS basics

RTOS uses a preemptive scheduler to allocate system time(CPU) between different tasks , so that the OS switches these tasks one after another creating an illusion of parallelism. Task switching can create overhead as well as priority inversion needs to be taken care in RTOS

  1. Task scheduling : The process by which a task or function is scheduled along with a priority, so it can be executed

  2. Idle task : A task that executes when no other tasks are active, example : led indication can be done, logging can be done etc.

  3. Priority inversion : When a low priority task blocks a resource being required by a high priority task, i.e. high priority task behaves like a low priority task

Last updated