Bird
0
0

You have tasks with priorities 2, 3, and 3. How does FreeRTOS handle scheduling if all are ready?

hard📝 Application Q9 of 15
FreeRTOS - Task Priorities
You have tasks with priorities 2, 3, and 3. How does FreeRTOS handle scheduling if all are ready?
ARuns tasks randomly regardless of priority
BRuns priority 2 task first, then priority 3 tasks
CRuns only one priority 3 task forever
DRuns priority 3 tasks in round-robin, then priority 2
Step-by-Step Solution
Solution:
  1. Step 1: Identify highest priority tasks

    Priority 3 is higher than 2, so those tasks run first.
  2. Step 2: Understand round-robin for equal priorities

    Tasks with same priority (3) share CPU time round-robin.
  3. Final Answer:

    Runs priority 3 tasks in round-robin, then priority 2 -> Option D
  4. Quick Check:

    Higher priority runs first; equal priority shares CPU [OK]
Quick Trick: Equal priority tasks share CPU before lower priority runs [OK]
Common Mistakes:
  • Running lower priority before higher
  • Ignoring round-robin for equal priority
  • Assuming random scheduling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes