Bird
0
0

How does FreeRTOS handle time-slicing when multiple tasks have equal priority but one task blocks frequently?

hard📝 Application Q9 of 15
FreeRTOS - Task Scheduling
How does FreeRTOS handle time-slicing when multiple tasks have equal priority but one task blocks frequently?
AThe scheduler switches CPU time among ready tasks, skipping blocked ones
BThe blocked task still receives CPU time during blocking
CTime-slicing stops until all tasks are ready again
DThe highest priority task runs exclusively regardless
Step-by-Step Solution
Solution:
  1. Step 1: Understand task states in scheduling

    Blocked tasks do not consume CPU time until they become ready.
  2. Step 2: Identify scheduler behavior with time-slicing

    Scheduler switches CPU time only among ready tasks, skipping blocked ones.
  3. Final Answer:

    The scheduler switches CPU time among ready tasks, skipping blocked ones -> Option A
  4. Quick Check:

    Time-slicing with blocked tasks = D [OK]
Quick Trick: Blocked tasks don't get CPU time during time-slicing [OK]
Common Mistakes:
  • Assuming blocked tasks run
  • Thinking time-slicing pauses
  • Ignoring task states

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes