Bird
0
0

A task with priority 2 never runs even though it is ready. The system uses preemptive scheduling. What could be wrong?

medium📝 Debug Q7 of 15
FreeRTOS - Task Scheduling
A task with priority 2 never runs even though it is ready. The system uses preemptive scheduling. What could be wrong?
AThe scheduler is not started
BThe task stack size is too large
CThe task was created with priority 0
DA higher priority task is always running or ready
Step-by-Step Solution
Solution:
  1. Step 1: Analyze why a ready task doesn't run

    In preemptive scheduling, a lower priority task won't run if a higher priority task is always ready or running.
  2. Step 2: Check other options

    Stack size or priority 0 would affect creation or cause errors; scheduler not started means no tasks run at all.
  3. Final Answer:

    A higher priority task is always running or ready -> Option D
  4. Quick Check:

    Higher priority tasks block lower ones from running [OK]
Quick Trick: Higher priority tasks always run first [OK]
Common Mistakes:
  • Ignoring priority effects on scheduling
  • Assuming stack size blocks scheduling
  • Forgetting to start the scheduler

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes