Bird
0
0

A developer notices that two equal priority tasks are not sharing CPU time fairly. Which of the following is the most likely cause?

medium📝 Debug Q6 of 15
FreeRTOS - Task Scheduling
A developer notices that two equal priority tasks are not sharing CPU time fairly. Which of the following is the most likely cause?
ATasks have different stack sizes
BconfigMAX_PRIORITIES is set too high
CTasks use different task names
DconfigUSE_TIME_SLICING is set to 0
Step-by-Step Solution
Solution:
  1. Step 1: Identify cause of unfair CPU sharing

    Time-slicing must be enabled for equal priority tasks to share CPU fairly.
  2. Step 2: Check config settings

    If configUSE_TIME_SLICING is 0, tasks won't time-slice and share CPU fairly.
  3. Final Answer:

    configUSE_TIME_SLICING is set to 0 -> Option D
  4. Quick Check:

    Unfair CPU sharing cause = B [OK]
Quick Trick: Enable time-slicing to ensure fair CPU sharing [OK]
Common Mistakes:
  • Blaming stack size or names
  • Misunderstanding max priorities effect
  • Ignoring time-slicing config

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes