Segmentation vs Paging | OS Interview | Skill-Lync Resources
Medium Operating Systems Memory Management

What is segmentation and how does it differ from paging?

Answer

Segmentation divides memory into variable-sized segments based on logical units (code, data, stack). Each segment has base address and limit. Provides programmer-visible memory organization and protection per segment. Vs Paging: Paging uses fixed-size pages (invisible to programmer), segmentation uses variable-size segments (programmer visible). Segmentation can have external fragmentation; paging has internal. Some systems combine both (segmented paging) - each segment is paged.

Master These Concepts with IIT Certification
IIT Certified

Master These Concepts with IIT Certification

175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.

Relevant for Roles

Systems Developer OS Developer Software Engineer