Bird
0
0

Given three tasks with priorities 1, 3, and 2, which task will FreeRTOS run first if all are ready?

medium📝 Predict Output Q4 of 15
FreeRTOS - Task Priorities
Given three tasks with priorities 1, 3, and 2, which task will FreeRTOS run first if all are ready?
ATask with priority 1
BThe task created first
CTask with priority 2
DTask with priority 3
Step-by-Step Solution
Solution:
  1. Step 1: Understand FreeRTOS scheduling

    FreeRTOS always runs the highest priority task that is ready.
  2. Step 2: Compare given priorities

    Among 1, 3, and 2, priority 3 is highest.
  3. Final Answer:

    Task with priority 3 -> Option D
  4. Quick Check:

    Highest priority runs first [OK]
Quick Trick: Higher number means higher priority [OK]
Common Mistakes:
  • Choosing lowest priority task
  • Assuming FIFO scheduling
  • Ignoring priority values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes