Bird
0
0

If configUSE_TIME_SLICING is set to 0, and two tasks have equal priority, what happens when both are ready to run?

medium📝 Predict Output Q5 of 15
FreeRTOS - Task Scheduling
If configUSE_TIME_SLICING is set to 0, and two tasks have equal priority, what happens when both are ready to run?
ATasks switch every tick regardless of config
BBoth tasks run simultaneously on separate cores
CThe first task to run continues until it blocks or yields
DThe idle task runs instead of these tasks
Step-by-Step Solution
Solution:
  1. Step 1: Understand effect of disabling time-slicing

    With time-slicing off, tasks of equal priority do not share CPU time automatically.
  2. Step 2: Identify scheduler behavior

    The first ready task runs until it blocks or yields voluntarily.
  3. Final Answer:

    The first task to run continues until it blocks or yields -> Option C
  4. Quick Check:

    Time-slicing off behavior = B [OK]
Quick Trick: Without time-slicing, first ready task runs until blocking [OK]
Common Mistakes:
  • Assuming tasks switch automatically
  • Thinking tasks run in parallel
  • Confusing idle task role

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes