In a FreeRTOS system with preemptive scheduling, how does time slicing affect tasks of equal priority?
hard📝 Application Q9 of 15
FreeRTOS - Task Scheduling
In a FreeRTOS system with preemptive scheduling, how does time slicing affect tasks of equal priority?
ATasks of equal priority share CPU time by switching periodically
BThe first created task runs forever ignoring others
CTasks run in random order regardless of priority
DOnly one task runs until it blocks or yields
Step-by-Step Solution
Solution:
Step 1: Understand time slicing in FreeRTOS
Time slicing allows tasks of equal priority to share CPU time by switching between them periodically.
Step 2: Compare options
Tasks of equal priority share CPU time by switching periodically correctly describes time slicing; others describe non-preemptive or incorrect behavior.
Final Answer:
Tasks of equal priority share CPU time by switching periodically -> Option A
Quick Check:
Time slicing shares CPU among equal priority tasks [OK]
Quick Trick:Equal priority tasks share CPU via time slicing [OK]
Common Mistakes:
Assuming one task runs forever
Believing tasks run randomly
Ignoring time slicing effect
Master "Task Scheduling" in FreeRTOS
9 interactive learning modes - each teaches the same concept differently