Bird
0
0

Why might a low priority task never get CPU time in a FreeRTOS system?

medium📝 Debug Q7 of 15
FreeRTOS - Task Scheduling
Why might a low priority task never get CPU time in a FreeRTOS system?
ABecause the scheduler only runs high priority tasks
BBecause higher priority tasks are always ready and preempt it
CBecause low priority tasks are deleted automatically
DBecause the scheduler runs tasks randomly
Step-by-Step Solution
Solution:
  1. Step 1: Understand preemption in FreeRTOS

    Higher priority tasks preempt lower priority ones if they are ready.
  2. Step 2: Apply to low priority task scenario

    If high priority tasks are always ready, low priority tasks get no CPU time.
  3. Final Answer:

    Because higher priority tasks are always ready and preempt it -> Option B
  4. Quick Check:

    Preemption blocks low priority tasks if high priority ready [OK]
Quick Trick: Low priority tasks starve if higher priorities always ready [OK]
Common Mistakes:
  • Thinking scheduler ignores low priority tasks
  • Believing low priority tasks are deleted automatically
  • Assuming scheduler runs tasks randomly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes