1.2.1 Operating Systems - Memory Management Flashcards
What does memory management allow for?
Memory management allows programs to be stored in memory safely and efficiently.
What could one program do to another without memory management?
Without memory management, one program could change the data of another. With memory management each different program will be using its own data.
What is segmentation?
Segmentation is the splitting up of a program into blocks containing modules or routines.
What is pagination (paging)?
Pagination (paging) is the splitting up of programs into blocks of the same physical memory size. Each physical unit is a page.
How are pages kept track of?
The operating system uses a page table to keep track of where pages are stored, meaning they don’t have to be stored contiguously (next to each other).
What do most modern operating systems use in memory management, pagination (paging) or segmentation?
Most modern operating systems use a combination of paging and segmentation in their memory management.
Why is paging and segmentation used?
Paging and segmentation is used to maintain efficiency - when a new program needs to be loaded into memory, it is inefficient to ‘shuffle’ an entire program along to give room for this new process. Instead the operating systems splits processes via paging or segmentation.