Bird
0
0

Consider three FreeRTOS tasks with priorities 4, 7, and 7. How will the scheduler decide which task to run when all are ready?

hard📝 Application Q8 of 15
FreeRTOS - Task Creation and Management

Consider three FreeRTOS tasks with priorities 4, 7, and 7. How will the scheduler decide which task to run when all are ready?

AAll tasks run simultaneously regardless of priority
BThe task with priority 4 will run first because it was created earlier
CTasks with priority 7 will run before the task with priority 4, and they will time-slice equally
DThe task with priority 4 will preempt the tasks with priority 7
Step-by-Step Solution
Solution:
  1. Step 1: Identify highest priority tasks

    Tasks with priority 7 have higher priority than the one with 4.
  2. Step 2: Scheduler behavior with equal priorities

    Tasks with the same highest priority share CPU time via time slicing.
  3. Final Answer:

    Tasks with priority 7 run first and share CPU time equally -> Option C
  4. Quick Check:

    Higher priority runs first; equal priority tasks time-slice [OK]
Quick Trick: Higher priority tasks run first; equal priority tasks share CPU [OK]
Common Mistakes:
  • Assuming lower priority task runs first
  • Believing tasks with same priority run sequentially
  • Thinking all tasks run simultaneously

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes