Bird
0
0

Consider this FreeRTOS task priority setup:

medium📝 Predict Output Q13 of 15
FreeRTOS - RTOS Fundamentals
Consider this FreeRTOS task priority setup:
Task A priority = 3
Task B priority = 2
Task C priority = 1
If Task A blocks for 100ms using vTaskDelay(), which task runs next?
ATask A again immediately
BTask B
CTask C
DNo task runs until Task A finishes delay
Step-by-Step Solution
Solution:
  1. Step 1: Understand task priorities and blocking

    Task A has highest priority (3) but blocks for 100ms, so it is not ready.
  2. Step 2: Identify next highest priority ready task

    Task B has priority 2 and is ready, so it runs next.
  3. Final Answer:

    Task B -> Option B
  4. Quick Check:

    Next task after blocking = highest ready priority [OK]
Quick Trick: Next runs highest priority ready task after delay [OK]
Common Mistakes:
  • Assuming blocked task runs immediately
  • Ignoring task priorities
  • Thinking no task runs during delay

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes