0% found this document useful (0 votes)
53 views7 pages

Sir Chotu Ram Institute of Engineering and Technology (Ccs University Meerut)

This document presents a summary on segmentation in operating systems. Segmentation divides memory into variable-sized parts called segments that can be allocated to processes. Each segment is described by a segment table containing its base address and limit. A program is divided into multiple segments identified by name and offset, which are mapped to physical memory via the segment table in the same way pages are mapped using a page table in paging. The segment table stores the base address and limit of each segment. An example shows a program divided into five segments and its corresponding segment table. Advantages of segmentation include no internal fragmentation and smaller overhead compared to paging, while disadvantages can include external fragmentation and difficulty allocating contiguous memory.

Uploaded by

Shruti Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views7 pages

Sir Chotu Ram Institute of Engineering and Technology (Ccs University Meerut)

This document presents a summary on segmentation in operating systems. Segmentation divides memory into variable-sized parts called segments that can be allocated to processes. Each segment is described by a segment table containing its base address and limit. A program is divided into multiple segments identified by name and offset, which are mapped to physical memory via the segment table in the same way pages are mapped using a page table in paging. The segment table stores the base address and limit of each segment. An example shows a program divided into five segments and its corresponding segment table. Advantages of segmentation include no internal fragmentation and smaller overhead compared to paging, while disadvantages can include external fragmentation and difficulty allocating contiguous memory.

Uploaded by

Shruti Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

SIR CHOTU RAM INSTITUTE OF

ENGINEERING AND TECHNOLOGY


(CCS UNIVERSITY MEERUT)

P RE S E N T A T I O N
ON
S E GM E N T A T I O N IN O P ER A T I N G S Y S T E M

PRESENTED BY: PRESENTED TO:


ANKUJ GAUTAM MS.SAVITA MITTAL
M.C.A 2ND SEMESTER
ROLL NO: 100200706
What is Segmentation?

 In Operating Systems, Segmentation is a memory


management technique in which, the memory is divided
into the variable size parts. Each part is known as segment
which can be allocated to a process.
 The details about each segment are stored in a table called
as segment table. Segment table is stored in one (or many)
of the segments.
 Segment table contains mainly two information about
segment:
(1) Base: It is the base address of the segment.
(2) Limit: It is the length of the segment.
Implementation of Segmentation

 In segmentation the user program is divided into the


number of segments. And a segment is identified by two
components i.e. a segment name and segment offset.
 This two-dimensional address is mapped onto the one-
dimensional physical memory. Like we have page table in
paging similarly we have a segment table in segmentation.
Segmentation Table

 The segment table has two entries for each segment i.e.
segment base address and segment limit. The segment
base address denotes the starting address where the
segment is stored in the memory while the segment
limit denotes the length of the segment.
Example of Segmentation

 Consider that a user program has been divided into five


segments and they are numbered from segment 0 to
segment 4, as you can see them in the logical address space.
You also have a segment table which has entries for these
segment with their base address in physical memory and
their limit.
Advantages and Disadvantages

Advantages of Segmentation
 No internal fragmentation
 Average Segment Size is larger than the actual page size.
 Less overhead
 It is easier to relocate segments than entire address space.
 The segment table is of lesser size as compare to the page table in
paging.
Disadvantages of Segmentation
 It can have external fragmentation.
 it is difficult to allocate contiguous memory to variable sized partition.
 Costly memory management algorithms.
THANK YOU

You might also like