Lect 5
Lect 5
and UNIX).
Logical vs. Physical Address Space
◼ A logical (virtual) address space is the set of
logical addresses generated by a process.
◼ Single-partition allocation
❑ Relocation-register scheme used to protect user
processes from each other, and from changing
operating-system code and data.
❑ Relocation (base) register contains value of
smallest physical address; limit register contains
range of logical addresses – each logical address
must be less than the limit register.
Contiguous Allocation (2)
◼ Multiple-partition allocation
❑ Hole – block of available memory; holes of various size
are scattered throughout memory.
❑ When a process arrives, it is allocated memory from a
hole large enough to accommodate it.
❑ Operating system maintains information about:
a) allocated partitions b) free partitions (hole)
Dynamic Storage-Allocation Problem
How to satisfy a request of size n from a list of free
holes.
◼ First-fit: Allocate the first hole that is big enough.
◼ Allocation.
❑ First fit/best fit
❑ External fragmentation
◼ Relocation.
❑ Dynamic
❑ By segment table
Segmentation Example
Segmentation Example
Segmentation with Paging – MULTICS
◼ The system solved problems of external
fragmentation and lengthy search times by
paging the segments.