Bird
Raised Fist0

You are designing a memory management system for a database server that requires protection and sharing of logical data units with variable sizes. Which approach is most suitable and why?

hard🌍 Real-world Scenario Q9 of Q15
Operating Systems - Paging vs Segmentation - Address Translation
You are designing a memory management system for a database server that requires protection and sharing of logical data units with variable sizes. Which approach is most suitable and why?
ASegmentation, because it supports variable-sized logical units with protection and sharing
BPaging, because fixed-size pages simplify sharing and protection mechanisms
CPaged segmentation, because it combines variable-sized segments with paging benefits
DContiguous allocation, because it provides fastest access and protection
Step-by-Step Solution
Solution:
  1. Step 1: Understand requirements

    Database needs variable-sized logical units with protection and sharing.
  2. Step 2: Evaluate segmentation

    Supports variable sizes and protection but suffers from fragmentation.
  3. Step 3: Evaluate paging

    Simplifies sharing but uses fixed-size pages, losing logical unit boundaries.
  4. Step 4: Evaluate paged segmentation

    Combines segmentation's logical units with paging's fragmentation control and sharing.
  5. Step 5: Evaluate contiguous allocation

    Not suitable due to fragmentation and inflexibility.
  6. Final Answer:

    Option C -> Option C
  7. Quick Check:

    Paged segmentation balances variable size and sharing -> correct [OK]
Quick Trick: Paged segmentation combines variable size and paging benefits [OK]
Common Mistakes:
MISTAKES
  • Choosing pure segmentation ignoring fragmentation
  • Choosing pure paging ignoring logical unit boundaries
Trap Explanation:
PITFALL
  • Candidates often pick pure segmentation or paging without considering combined benefits for complex needs.
Interviewer Note:
CONTEXT
  • Evaluates candidate's ability to choose memory scheme for real-world constraints
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