What is swapping, and how does the medium-term scheduler use it to manage memory?
Last updated
Swapping moves a process from main memory to disk (swap out, process becomes suspended) and later back in to resume where it left off.
The medium-term scheduler swaps out blocked or low-priority processes to relieve memory pressure (e.g. thrashing) and reduce the degree of multiprogramming.
It is costly because of disk I/O, so it is used judiciously.
- https://www.geeksforgeeks.org/operating-systems/difference-between-short-term-medium-term-and-long-term-scheduler/
- https://www.geeksforgeeks.org/operating-systems/difference-between-short-term-and-medium-term-scheduler/
- https://www.geeksforgeeks.org/operating-systems/medium-term-scheduler-in-operating-system/
- https://medium.com/@teja.ravi474/short-term-medium-term-and-long-term-schedulers-an-overview-of-cpu-scheduling-in-operating-6ed2b14fa71d
- https://medium.com/@durgeshsingh21122099/process-schedulers-in-operating-system-1e92dbc49a5d
- https://en.wikibooks.org/wiki/Operating_System_Design/Swapping
- https://www.tutorialspoint.com/article/short-term-vs-medium-term-vs-long-term-scheduling