Bird
0
0

Given the following FreeRTOS tasks with priorities, which task will run first?

medium📝 Predict Output Q13 of 15
FreeRTOS - Task Scheduling

Given the following FreeRTOS tasks with priorities, which task will run first?

Task A priority = 2
Task B priority = 3
Task C priority = 1
ATask A
BTask B
CTask C
DAll run simultaneously
Step-by-Step Solution
Solution:
  1. Step 1: Compare task priorities

    Task B has priority 3, which is higher than Task A (2) and Task C (1).
  2. Step 2: Determine which task runs first

    FreeRTOS runs the highest priority task first, so Task B runs before others.
  3. Final Answer:

    Task B -> Option B
  4. Quick Check:

    Highest priority (3) = Task B [OK]
Quick Trick: Highest number priority runs first in FreeRTOS [OK]
Common Mistakes:
  • Choosing task with lowest priority
  • Assuming tasks run simultaneously
  • Ignoring priority values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes