Bird
0
0

What feature can you enable to prevent the high priority task from being starved?

hard📝 Application Q9 of 15
FreeRTOS - Task Scheduling
In a FreeRTOS system, a low priority task holds a mutex and is preempted by a medium priority task. The high priority task is waiting for the mutex. What feature can you enable to prevent the high priority task from being starved?
ARound-robin scheduling
BTask notifications
CPriority ceiling protocol
DStatic task priorities
Step-by-Step Solution
Solution:
  1. Step 1: Understand problem of medium priority preemption

    Medium priority task preempting low priority task holding mutex causes high priority task starvation.
  2. Step 2: Identify solution

    Priority ceiling protocol raises low priority task priority to highest needed, preventing medium priority preemption.
  3. Final Answer:

    Priority ceiling protocol -> Option C
  4. Quick Check:

    Prevent starvation with B [OK]
Quick Trick: Use priority ceiling to block medium priority preemption [OK]
Common Mistakes:
  • Confusing round-robin with priority protocols
  • Thinking task notifications solve priority issues
  • Assuming static priorities fix starvation automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes