Chapter 2 Part 1
Chapter 2 Part 1
management
Part 1: Memory Management of OS
Learning outcome
At the end of this chapter, students will be able to:
1) Identify between resident and transient routines
2) Explain the following terminology:
- Fixed-partition memory management
- Dynamic memory management
- Segmentation
- Paging
3) Explain dynamic address translation
4) Explain how virtual memory works
Resident routines
Transient routines
Fixed-partition memory
management structure diagram
Compaction:
Method to overcome the external fragmentation problem.
All free blocks are brought together as one large block of free
space.
Segmentation
Segmentation
Segmentation
Users View of a
Program
Segmentation
1
4
1
2
3
4
2
3
user space
Segmentation
Segmentation
1)
2)
3)
Segmentation
length
base
Segmentation
Dynamic address
translation.
To dynamically translate
a segment address to an
absolute address:
1) Break the address into
segment
and displacement
portions
2) Use the segment
number to find the
segments absolute entry
point
address in a program
segment table
3) Add the displacement
to the entry point
address.
Paging
Paging
Paging
Paging
Paging
Virtual Memory
Virtual Memory
Virtual Memory
1)
-