You are on page 1of 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