Swapping
Processes swapped temporarily to a back store then brought back to memory for execution
Advantages of swapping
Increases degree of multiprogramming in a system
Contiguous allocation
Way of organizing program in memory where a program must exist as Contiguous adddreses
Compaction
Shuffle memory contents to place all free memory together in one large block (only when allocation is dynamic)
Requirements of Primary Memory
Protection of memory space
Protection by using a pair of base and limit registers define the logical address space of a process
Hardware Address Protection
CPU must check every memory access generated in user mode to
be sure it is between base and limit for that user
Address Binding
Mapping and loading instructions and data to locations in RAM (main memory)
Address binding of instructions and data to memory addresses can
happen at three different stages, what are they?
Logical vs. Physical Address Space
Logical address space
Is the set of all logical addresses generated
by a program
Physical address space
Is the set of all physical addresses
generated by a program
Memory-Management Unit (MMU)
Hardware device that at run-time maps virtual to physical address
Fixed-Partition Strategy
Divide memory into N fixed size regions,
possibly of different sizes
Internal Fragmentation
Variable-Partition Strategy
Allocate a process exactly what it
needs
External Fragmentation