Expand description
Core scheduler implementation
Contains the Scheduler struct which implements the scheduling algorithms
(round-robin, priority, CFS, hybrid), task enqueueing/dequeueing, context
switching, and the global scheduler instance.
Structs§
- Scheduler
- Scheduler state
Enums§
- Sched
Algorithm - Scheduling algorithm
Functions§
- current_
scheduler - Get scheduler for current CPU
- get_
task_ ptr - Look up a task pointer by PID. O(log n) via BTreeMap.
- register_
task - Register a task in the global PID-to-Task registry.
- schedule_
on_ cpu - Schedule on specific CPU
- should_
preempt - Check if should preempt current task
- unregister_
task - Unregister a task from the global PID-to-Task registry.