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:
Step 1: Understand requirements
Database needs variable-sized logical units with protection and sharing.
Step 2: Evaluate segmentation
Supports variable sizes and protection but suffers from fragmentation.
Step 3: Evaluate paging
Simplifies sharing but uses fixed-size pages, losing logical unit boundaries.
Step 4: Evaluate paged segmentation
Combines segmentation's logical units with paging's fragmentation control and sharing.
Step 5: Evaluate contiguous allocation
Not suitable due to fragmentation and inflexibility.
Final Answer:
Option C -> Option C
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