Memory MGT
Memory MGT
• Background
• Swapping
• Contiguous Allocation
• Paging
• Segmentation
• Segmentation with Paging
• Single-partition allocation
– Relocation-register scheme used to protect user processes
from each other, and from changing operating-system
code and data.
– Relocation register contains value of smallest physical
address; limit register contains range of logical addresses –
each logical address must be less than the limit register.
OS OS OS OS
process 8 process 10
4
1
3 2
4
• Sharing.
– shared segments
– same segment number
• Allocation.
– first fit/best fit
– external fragmentation