Bird
Raised Fist0

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
  1. Step 1: Understand segmentation's purpose

    Segmentation divides memory into logical units like code, stack, and data, which can vary in size.
  2. Step 2: Analyze When fixed-size memory blocks are needed to simplify allocation

    Paging uses fixed-size pages, not segmentation, so this is incorrect.
  3. Step 3: Analyze When minimizing internal fragmentation is the primary goal

    Paging reduces internal fragmentation better than segmentation; segmentation can have external fragmentation.
  4. 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.
  5. Final Answer:

    Option D -> Option D
  6. 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.
Quick Trick: Segmentation = logical variable-sized chunks; Paging = fixed-size blocks
Common Mistakes:
MISTAKES
  • Confusing segmentation with fixed-size allocation
  • Assuming segmentation eliminates fragmentation
  • 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

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes