Bird
0
0

Given a FreeRTOS system with runtime monitoring enabled, what output indicates a task is starving due to priority inversion?

medium📝 Predict Output Q4 of 15
FreeRTOS - Debugging and Monitoring
Given a FreeRTOS system with runtime monitoring enabled, what output indicates a task is starving due to priority inversion?
ATask A runs continuously without preemption
BTask B waits unusually long despite higher priority
CAll tasks run equally with no delays
DSystem crashes immediately after start
Step-by-Step Solution
Solution:
  1. Step 1: Understand priority inversion symptom

    Priority inversion causes a higher priority task to wait longer than expected because a lower priority task holds a resource.
  2. Step 2: Match symptom to runtime monitoring output

    Runtime monitoring shows Task B (higher priority) waiting unusually long, indicating priority inversion.
  3. Final Answer:

    Task B waits unusually long despite higher priority -> Option B
  4. Quick Check:

    Priority inversion detected by long wait = Task B waits unusually long despite higher priority [OK]
Quick Trick: Long wait of high priority task signals priority inversion [OK]
Common Mistakes:
  • Confusing continuous run with starvation
  • Ignoring task priority in wait times
  • Assuming system crash means priority inversion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes