In which scenario is segmentation preferred over paging for memory management?
easy🔍 Pattern Recognition Q11 of Q15
Operating Systems - Paging vs Segmentation - Address Translation
In which scenario is segmentation preferred over paging for memory management?
AWhen fixed-size memory blocks are needed to simplify allocation
BWhen hardware support for address translation is limited
CWhen minimizing internal fragmentation is the primary goal
DWhen the program requires logical division of memory into variable-sized segments
Step-by-Step Solution
Step 1: Understand segmentation's purpose
Segmentation divides memory into logical units like code, stack, and data, which can vary in size.
Step 2: Analyze When fixed-size memory blocks are needed to simplify allocation
Paging uses fixed-size pages, not segmentation, so this is incorrect.
Step 3: Analyze When minimizing internal fragmentation is the primary goal
Paging reduces internal fragmentation better than segmentation; segmentation can have external fragmentation.
Step 4: Analyze When hardware support for address translation is limited
Both paging and segmentation require hardware support; limited hardware support is not a reason to prefer segmentation.
Final Answer:
Option D -> Option D
Quick Check:
Segmentation fits variable-sized logical divisions, matching the scenario described in When the program requires logical division of memory into variable-sized segments.
Believing segmentation is chosen due to hardware limits
Trap Explanation:
PITFALL
Options A and C are plausible because fixed-size blocks and fragmentation are common memory concerns, but they apply more to paging. Option D correctly identifies segmentation's logical division advantage.
Interviewer Note:
CONTEXT
Tests candidate's ability to identify when segmentation is the appropriate memory management scheme.
Master "Paging vs Segmentation - Address Translation" in Operating Systems
2 interactive learning modes - each teaches the same concept differently