Bird
0
0

If a high priority task is blocked waiting for an event, which task will FreeRTOS run next?

medium📝 Predict Output Q5 of 15
FreeRTOS - Task Priorities
If a high priority task is blocked waiting for an event, which task will FreeRTOS run next?
AThe highest priority ready task
BThe blocked high priority task
CThe lowest priority task
DNo task runs until the event occurs
Step-by-Step Solution
Solution:
  1. Step 1: Understand task states

    Blocked tasks cannot run until unblocked by an event.
  2. Step 2: Scheduler picks highest priority ready task

    If the highest priority task is blocked, scheduler runs next highest priority ready task.
  3. Final Answer:

    The highest priority ready task -> Option A
  4. Quick Check:

    Blocked tasks do not run; ready highest priority runs [OK]
Quick Trick: Only ready tasks can run, blocked tasks wait [OK]
Common Mistakes:
  • Trying to run blocked tasks
  • Assuming system idles when high priority blocked
  • Running lowest priority task unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes