module 3 Flashcards
Front
Back
- Page Frames & Page Tables: What is a page frame?
A page frame is a fixed-size block in physical memory used to hold a page from a process’s logical address space.
- Page Frames & Page Tables: What is a page table?
A page table is a data structure that maps a process’s logical page numbers to the corresponding physical page frames.
- Page Frames & Page Tables: How do page frames and page tables work together?
They work together by having the page table translate logical addresses (comprising a page number and an offset) into physical addresses where the page frames reside.
- Page Frames & Page Tables: Describe the process of address translation using a page table.
The CPU generates a logical address (page number and offset); the page table is then consulted to find the corresponding frame number, which is combined with the offset to create the physical address.
- Page Frames & Page Tables: What is an example of a page table mapping?
For example, if logical page 3 maps to physical frame 7, any address in page 3 is translated to frame 7 with the same offset.
- Page Frames & Page Tables: What is the benefit of using page frames and page tables?
They allow non-contiguous memory allocation, reducing external fragmentation and enhancing memory management flexibility.
- Page Frames & Page Tables: How do page tables compare to contiguous allocation?
Unlike contiguous allocation, page tables allow pages to be loaded into any available frame, reducing fragmentation and improving memory utilization.
- Fixed & Variable Partitioning: What is fixed partitioning in memory allocation?
Fixed partitioning divides the memory into fixed-size regions or partitions regardless of the process size.
- Fixed & Variable Partitioning: What is variable partitioning?
Variable partitioning dynamically allocates memory regions that exactly fit the size requirements of a process.
- Fixed & Variable Partitioning: What is the main drawback of fixed partitioning?
Fixed partitioning can lead to internal fragmentation when a process does not fully use its fixed-sized partition.
- Fixed & Variable Partitioning: What is the main drawback of variable partitioning?
Variable partitioning can cause external fragmentation because memory blocks vary in size and can leave unused gaps between them.
- Fixed & Variable Partitioning: How does fixed partitioning simplify memory management?
It simplifies allocation since partitions are predetermined, though this rigidity can waste memory if process sizes are smaller than the partition sizes.
- Fixed & Variable Partitioning: How does variable partitioning improve memory utilization?
By allocating memory based exactly on process size, it minimizes wasted space, albeit at the cost of potential external fragmentation.
- Fixed & Variable Partitioning: Compare fragmentation issues in fixed versus variable partitioning.
Fixed partitioning suffers from internal fragmentation while variable partitioning is prone to external fragmentation.
- Address Space vs. Memory Space: What is an address space?
An address space is the complete range of addresses that a process can use, typically referring to its logical (virtual) addresses.
- Address Space vs. Memory Space: What is memory space?
Memory space refers to the actual physical memory (RAM) available in the system.
- Address Space vs. Memory Space: How do address space and memory space differ?
Address space is the abstract set of addresses used by a process, while memory space is the real, physical locations in RAM.
- Address Space vs. Memory Space: Why is the concept of address space important?
It provides process isolation and security, ensuring that each process works within its own separate set of addresses.
- Address Space vs. Memory Space: What role does the page table play in this context?
The page table maps the logical address space to the physical memory space, enabling the translation from virtual to physical addresses.
- Address Space vs. Memory Space: How does logical-to-physical mapping occur?
A logical address is split into a page number and offset; the page table translates the page number to a physical frame, and the offset is used to access the exact memory location.
- Address Space vs. Memory Space: Give an example comparing address space and memory space.
A process might have a 4GB address space (logical) even though the system’s physical memory (memory space) is 8GB, with the page table handling the mapping.