














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















On Day 5, you’ll learn:
In FreeRTOS, tasks can be in one of five main states:
FreeRTOS uses preemptive scheduling :
Code Example
Expected Behavior
You can adjust a task’s priority during runtime using:
Example: This can be useful for:
Tasks have five main states in FreeRTOS. Priorities control who runs next — higher priority wins. Equal priorities share CPU time if time- slicing is enabled. Change priorities dynamically with vTaskPrioritySet() when needed. Avoid priority inversion and starvation by proper task design.