0
0
FreeRTOSprogramming~5 mins

Priority numbering in FreeRTOS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does a higher priority number mean in FreeRTOS?
In FreeRTOS, a higher priority number means the task has a higher priority and will be chosen to run before tasks with lower priority numbers.
Click to reveal answer
beginner
How are task priorities numbered in FreeRTOS?
Task priorities in FreeRTOS are numbered starting from 0 (lowest priority) up to configMAX_PRIORITIES - 1 (highest priority).
Click to reveal answer
intermediate
What happens if two tasks have the same priority in FreeRTOS?
If two tasks have the same priority, FreeRTOS uses time slicing or round-robin scheduling to share CPU time between them fairly.
Click to reveal answer
intermediate
Why is it important to assign correct priority numbers in FreeRTOS?
Assigning correct priority numbers ensures that critical tasks run first and the system behaves predictably, avoiding delays or missed deadlines.
Click to reveal answer
beginner
What is configMAX_PRIORITIES in FreeRTOS?
configMAX_PRIORITIES is a configuration constant that defines the maximum number of priority levels available in FreeRTOS.
Click to reveal answer
In FreeRTOS, which priority number represents the highest priority?
A1
B0
CconfigMAX_PRIORITIES - 1
DconfigMAX_PRIORITIES
What scheduling method does FreeRTOS use when two tasks have the same priority?
ARound-robin time slicing
BPriority inversion
CRandom selection
DFIFO only
If a task has priority 0, what does it mean?
AIt has the lowest priority
BIt has the highest priority
CIt cannot run
DIt runs only when idle
Why should you avoid assigning all tasks the same priority?
AIt improves system performance
BIt can cause inefficient CPU usage and unpredictable timing
CIt disables task switching
DIt increases memory usage
What does configMAX_PRIORITIES control?
AThe CPU clock speed
BThe maximum number of tasks
CThe stack size of tasks
DThe number of priority levels available
Explain how priority numbering works in FreeRTOS and why it matters.
Think about how tasks get CPU time based on their priority.
You got /4 concepts.
    Describe what happens when two tasks have the same priority in FreeRTOS.
    Consider how FreeRTOS handles equal priority tasks to keep things fair.
    You got /3 concepts.