CSMC 412
Operating Systems
- Prof. Ashok K Agrawala
Memory Management Online Set 1
March 2020 1
CSMC 412 Operating Systems Prof. Ashok K Agrawala Memory - - PowerPoint PPT Presentation
CSMC 412 Operating Systems Prof. Ashok K Agrawala Memory Management Online Set 1 March 2020 1 Memory Management Background Swapping Contiguous Memory Allocation Segmentation Paging Structure of the Page Table March
Memory Management Online Set 1
March 2020 1
March 2020 2
many CPUs have today and whose presence is managed by the hardware transparently
March 2020 3
March 2020 4
March 2020 5
March 2020 6
2𝑜 − 1 2𝑙 − 1 n k n bit address Address Space
March 2020 7
March 2020 8
Address Space B Address Space A
March 2020 9
March 2020 10
March 2020 11
March 2020 12
March 2020 13
March 2020 14
March 2020 15
March 2020 16
March 2020 17
March 2020 18
March 2020 19
release_memory()
March 2020 20
March 2020 21
March 2020 22
March 2020 23
March 2020 24
March 2020 25
Routine is not loaded until it is called Better memory-space utilization; unused routine is never loaded All routines kept on disk in relocatable load format Useful when large amounts of code are needed to handle infrequently occurring cases No special support from the operating system is required
Implemented through program design OS can help by providing libraries to implement dynamic loading
March 2020 26
March 2020 27
How to satisfy a request of size n from a list of free holes? First-fit and best-fit better than worst-fit in terms of speed and storage utilization
March 2020 28
March 2020 29
March 2020 30