Vacation Study 4th CFS Code
Vacation Study 4th CFS Code
• So, the contents of the tree migrate from the right to the le
ft to maintain fairness
• Each runnable task chases the other
CFS Internals
• Priority and CFS
• CFS doesn’t use priorities directly but instead uses them as a deca
y factor for the time a task
• Group scheduling
• Share their virtual runtimes across the group
• e.g. HTTP server; parallelizing incoming connections
• Scheduling Classes
• rt_sched_class ; SCHED_FIFO/RR
• fair_sched_class ; SCHED_OTHER
• idle_sched_class
Scheduling Classes
• How a task will be scheduled?
• Each task belongs to a scheduling class
If this task were using the fair scheduling class, check_preempt_curr() would resolve to check_preempt_wakeup()
APPENDIX
• Structure hierarchy for tasks and the red-black tree