Expand description
Implementation of TaskManager
It is only used to manage processes and schedule process based on ready queue. Other CPU process monitoring functions are in Processor.
Structs§
- PID2PCB instance (map of pid to pcb)
- TASK_MANAGER instance through lazy_static!
Functions§
- Add process to ready queue
- Take a process out of the ready queue
- Get process by pid
- Remove item(pid, _some_pcb) from PDI2PCB map (called by exit_current_and_run_next)