Segmentation, advantages, an example of segmentation in Operating Systems (OS)

Segmentation, advantages, an example of segmentation in Operating Systems (OS)

In this tutorial, we will try to answer the following questions;

What is segmentation?

What are the advantages of segmentation?

Give an example of segmentation?

What is segmentation?

Segmentation is a memory management technique in which we divide the process  Read More  into smaller segments.  The process is segmented module by module. In main memory, we only store the segments of the process. Process segment table is used to keep the record of segments, its size, and its memory address.

Example of segmentation

segmentation os operating system advantages examples
Figure: segmentation os operating system advantages examples

In this example, the process is divided into three segments.

  • Size of segment 1 is 50KB
  • Segment 2 is of 100KB
  • Segment 3 is of 60KB. 
  • Segment 1 is stored on address 11
  • Segment 2 is stored on address 13
  • Segment 3 is stored on address 14

What are advantages of segmentation?

  • The segment table is used to keep the record of segments and segment table occupies less space as compared to the paging table.
  • No internal fragmentation.  Read More 

    What are disadvantages of segmentation?

    • Due to segments external fragmentation occurs and external fragmentation results in a lot of memory waste.