Bird
Raised Fist0

In a system where processes frequently grow their stack dynamically, which memory management approach better handles this scenario and why?

hard⚖️ Approach Comparison Q8 of Q15
Operating Systems - Paging vs Segmentation - Address Translation
In a system where processes frequently grow their stack dynamically, which memory management approach better handles this scenario and why?
APaged segmentation, because it combines benefits of both paging and segmentation for dynamic growth
BSegmentation, because variable-sized segments can expand the stack segment without page overhead
CPaging, because fixed-size pages allow easy allocation of additional pages as stack grows
DNeither, because dynamic stack growth requires contiguous physical memory
Step-by-Step Solution
Solution:
  1. Step 1: Analyze dynamic stack growth

    Stack grows dynamically and unpredictably.
  2. Step 2: Evaluate paging

    Paging allows allocating new fixed-size pages easily without needing contiguous physical memory.
  3. Step 3: Evaluate segmentation

    Segmentation requires contiguous physical memory for segment expansion, which is difficult.
  4. Step 4: Evaluate paged segmentation

    While combining both, complexity and overhead may not justify it for stack growth.
  5. Step 5: Evaluate Neither, because dynamic stack growth requires contiguous physical memory

    Dynamic stack growth does not require contiguous physical memory if paging is used.
  6. Final Answer:

    Option C -> Option C
  7. Quick Check:

    Paging supports dynamic growth via page allocation -> correct [OK]
Quick Trick: Paging handles dynamic growth better due to fixed-size pages [OK]
Common Mistakes:
MISTAKES
  • Assuming segmentation can easily expand segments dynamically
  • Believing contiguous physical memory is always required
Trap Explanation:
PITFALL
  • Candidates often overestimate segmentation's flexibility and underestimate paging's dynamic allocation advantage.
Interviewer Note:
CONTEXT
  • Tests application of memory management concepts to dynamic scenarios
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