Concept Flow - Priority numbering in FreeRTOS
Define task priorities
Assign priority numbers
Scheduler compares priorities
Highest priority task runs
Lower priority tasks wait
If higher priority task blocks
Next highest priority task runs
Tasks are given priority numbers; the scheduler runs the highest priority task ready to run, lower priority tasks wait unless higher priority tasks block.