Bird
0
0

Given three tasks with priorities: TaskA=3, TaskB=5, TaskC=2. Which task will run first when all are ready?

medium📝 Predict Output Q13 of 15
FreeRTOS - Task Priorities
Given three tasks with priorities: TaskA=3, TaskB=5, TaskC=2. Which task will run first when all are ready?
ATaskA
BThey run simultaneously
CTaskC
DTaskB
Step-by-Step Solution
Solution:
  1. Step 1: Compare task priorities

    TaskB has priority 5, TaskA has 3, TaskC has 2.
  2. Step 2: Highest priority runs first

    Since 5 is highest, TaskB runs first when all are ready.
  3. Final Answer:

    TaskB -> Option D
  4. Quick Check:

    Highest priority = 5 = TaskB [OK]
Quick Trick: Highest priority number runs first [OK]
Common Mistakes:
  • Choosing lowest priority task
  • Thinking tasks run simultaneously
  • Ignoring priority values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes