SlideShare uma empresa Scribd logo
1 de 12
Segmentation in Operating
Systems
Dr.G.Jasmine Beulah
Kristu Jayanti College, Bengaluru
Segmentation
• Segmentation is another way of dividing the addressable memory.
• It is another scheme of memory management and it generally
supports the user view of memory.
• The Logical address space is basically the collection of segments.
• Each segment has a name and a length.
Segmentation
• Basically, a process is divided into segments. Like paging,
segmentation divides or segments the memory.
• But there is a difference and that is while the paging divides the
memory into a fixed size and on the other hand, segmentation
divides the memory into variable segments these are then loaded
into logical memory space.
A Program is basically a collection of segments.
And a segment is a logical unit such as
• main program
• procedure
• function
• method
• object
• local variable and global variables.
• symbol table
• common block
• stack
• arrays
Types of Segmentation
• Virtual Memory Segmentation With this type of segmentation, each
process is segmented into n divisions and the most important thing is
they are not segmented all at once.
• Simple Segmentation With the help of this type, each process is
segmented into n divisions and they are all together segmented at
once exactly but at the runtime and can be non-contiguous (that is
they may be scattered in the memory).
Characteristics of Segmentation
• The Segmentation partitioning scheme is variable-size.
• Partitions of the secondary memory are commonly known
as segments.
• Partition size mainly depends upon the length of modules.
• Thus with the help of this technique, secondary memory and main
memory are divided into unequal-sized partitions.
• A computer system that is using segmentation has a logical address
space that can be viewed as multiple segments.
• And the size of the segment is of the variable that is it may grow or
shrink.
• During the execution each segment has a name and length.
• The address mainly specifies both thing name of the segment and the
displacement within the segment.
• Thus the logical address consists of two tuples:
<segment-number,offset>
where,
• Segment Number(s): Segment Number is used to represent the
number of bits that are required to represent the segment.
• Offset(d) Segment offset is used to represent the number of bits that
are required to represent the size of the segment.
Translation of Two dimensional Logical
Address to one dimensional Physical Address.
Segmentation Architecture - Segment Table
• A Table that is used to store the information of all segments of the process is commonly known as Segment Table.
Generally, there is no simple relationship between logical addresses and physical addresses in this scheme.
• The mapping of a two-dimensional Logical address into a one-dimensional Physical address is done using the segment
table.
• This table is mainly stored as a separate segment in the main memory.
• The table that stores the base address of the segment table is commonly known as the Segment table base register (STBR)
• In the segment table each entry has :
• Segment Base/base address: The segment base mainly contains the starting physical address where the segments reside in
the memory.
• Segment Limit: The segment limit is mainly used to specify the length of the segment.
• Segment Table Base Register(STBR) The STBR register is used to point the segment table's location in the memory.
• Segment Table Length Register(STLR) This register indicates the number of segments used by a program. The segment
number s is legal if s<STLR
Segmentation Hardware
• The logical address generated by CPU consist of two parts:
• Segment Number(s): It is used as an index into the segment table.
• Offset(d): It must lie in between '0' and 'segment limit'.In this case, if
the Offset exceeds the segment limit then the trap is generated.
correct offset+segment base= address in Physical memory
• segment table is basically an array of base-limit register pair.

Mais conteúdo relacionado

Mais procurados

Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
myrajendra
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
koolkampus
 
Dynamic memory allocation in c++
Dynamic memory allocation in c++Dynamic memory allocation in c++
Dynamic memory allocation in c++
Tech_MX
 

Mais procurados (20)

File system structure
File system structureFile system structure
File system structure
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitives
 
Disk allocation methods
Disk allocation methodsDisk allocation methods
Disk allocation methods
 
Allocation and free space management
Allocation and free space managementAllocation and free space management
Allocation and free space management
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
Methods for handling deadlock
Methods for handling deadlockMethods for handling deadlock
Methods for handling deadlock
 
Array ppt
Array pptArray ppt
Array ppt
 
Threads in JAVA
Threads in JAVAThreads in JAVA
Threads in JAVA
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Java threads
Java threadsJava threads
Java threads
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memory
 
Memory management
Memory managementMemory management
Memory management
 
Applets
AppletsApplets
Applets
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Dynamic memory allocation in c++
Dynamic memory allocation in c++Dynamic memory allocation in c++
Dynamic memory allocation in c++
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
File allocation methods (1)
File allocation methods (1)File allocation methods (1)
File allocation methods (1)
 
Java packages
Java packagesJava packages
Java packages
 
Deadlock dbms
Deadlock dbmsDeadlock dbms
Deadlock dbms
 

Semelhante a Segmentation in operating systems

ppt on Segmentation in operationg system
ppt on Segmentation in operationg systemppt on Segmentation in operationg system
ppt on Segmentation in operationg system
suraj sharma
 
37 segmentation
37 segmentation37 segmentation
37 segmentation
myrajendra
 

Semelhante a Segmentation in operating systems (20)

os presentation.ppt
os presentation.pptos presentation.ppt
os presentation.ppt
 
os ppt.pptx
os  ppt.pptxos  ppt.pptx
os ppt.pptx
 
Operating system 34 contiguous allocation
Operating system 34 contiguous allocationOperating system 34 contiguous allocation
Operating system 34 contiguous allocation
 
ppt on Segmentation in operationg system
ppt on Segmentation in operationg systemppt on Segmentation in operationg system
ppt on Segmentation in operationg system
 
PAGIN AND SEGMENTATION.docx
PAGIN AND SEGMENTATION.docxPAGIN AND SEGMENTATION.docx
PAGIN AND SEGMENTATION.docx
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
CSI-503 - 8.Paging and Segmentation
CSI-503 - 8.Paging and SegmentationCSI-503 - 8.Paging and Segmentation
CSI-503 - 8.Paging and Segmentation
 
Memory management
Memory managementMemory management
Memory management
 
Memory Management Strategies - III.pdf
Memory Management Strategies - III.pdfMemory Management Strategies - III.pdf
Memory Management Strategies - III.pdf
 
Segmentation
SegmentationSegmentation
Segmentation
 
Segmentation geekssay.com
Segmentation  geekssay.comSegmentation  geekssay.com
Segmentation geekssay.com
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Chapter07_ds.ppt
Chapter07_ds.pptChapter07_ds.ppt
Chapter07_ds.ppt
 
37 segmentation
37 segmentation37 segmentation
37 segmentation
 
Main Memory
Main MemoryMain Memory
Main Memory
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
 
Memory management1
Memory management1Memory management1
Memory management1
 
Storage management
Storage managementStorage management
Storage management
 
memory managment on computer science.ppt
memory managment on computer science.pptmemory managment on computer science.ppt
memory managment on computer science.ppt
 
UNIT-2 OS.pptx
UNIT-2 OS.pptxUNIT-2 OS.pptx
UNIT-2 OS.pptx
 

Mais de Dr. Jasmine Beulah Gnanadurai

Mais de Dr. Jasmine Beulah Gnanadurai (20)

Data Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptxData Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptx
 
DMQL(Data Mining Query Language).pptx
DMQL(Data Mining Query Language).pptxDMQL(Data Mining Query Language).pptx
DMQL(Data Mining Query Language).pptx
 
Stacks.pptx
Stacks.pptxStacks.pptx
Stacks.pptx
 
Quick Sort.pptx
Quick Sort.pptxQuick Sort.pptx
Quick Sort.pptx
 
KBS Architecture.pptx
KBS Architecture.pptxKBS Architecture.pptx
KBS Architecture.pptx
 
Knowledge Representation in AI.pptx
Knowledge Representation in AI.pptxKnowledge Representation in AI.pptx
Knowledge Representation in AI.pptx
 
Mem mgt
Mem mgtMem mgt
Mem mgt
 
Decision tree
Decision treeDecision tree
Decision tree
 
Association rules apriori algorithm
Association rules   apriori algorithmAssociation rules   apriori algorithm
Association rules apriori algorithm
 
Big data architecture
Big data architectureBig data architecture
Big data architecture
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
Aritificial intelligence
Aritificial intelligenceAritificial intelligence
Aritificial intelligence
 
Java threads
Java threadsJava threads
Java threads
 
Java Applets
Java AppletsJava Applets
Java Applets
 
Stacks and Queue - Data Structures
Stacks and Queue - Data StructuresStacks and Queue - Data Structures
Stacks and Queue - Data Structures
 
JavaScript Functions
JavaScript FunctionsJavaScript Functions
JavaScript Functions
 
JavaScript Operators
JavaScript OperatorsJavaScript Operators
JavaScript Operators
 
Css Text Formatting
Css Text FormattingCss Text Formatting
Css Text Formatting
 
CSS - Cascading Style Sheet
CSS - Cascading Style SheetCSS - Cascading Style Sheet
CSS - Cascading Style Sheet
 
Newsgroup
NewsgroupNewsgroup
Newsgroup
 

Último

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Segmentation in operating systems

  • 1. Segmentation in Operating Systems Dr.G.Jasmine Beulah Kristu Jayanti College, Bengaluru
  • 2. Segmentation • Segmentation is another way of dividing the addressable memory. • It is another scheme of memory management and it generally supports the user view of memory. • The Logical address space is basically the collection of segments. • Each segment has a name and a length.
  • 3. Segmentation • Basically, a process is divided into segments. Like paging, segmentation divides or segments the memory. • But there is a difference and that is while the paging divides the memory into a fixed size and on the other hand, segmentation divides the memory into variable segments these are then loaded into logical memory space.
  • 4. A Program is basically a collection of segments. And a segment is a logical unit such as • main program • procedure • function • method • object • local variable and global variables. • symbol table • common block • stack • arrays
  • 5. Types of Segmentation • Virtual Memory Segmentation With this type of segmentation, each process is segmented into n divisions and the most important thing is they are not segmented all at once. • Simple Segmentation With the help of this type, each process is segmented into n divisions and they are all together segmented at once exactly but at the runtime and can be non-contiguous (that is they may be scattered in the memory).
  • 6. Characteristics of Segmentation • The Segmentation partitioning scheme is variable-size. • Partitions of the secondary memory are commonly known as segments. • Partition size mainly depends upon the length of modules. • Thus with the help of this technique, secondary memory and main memory are divided into unequal-sized partitions.
  • 7. • A computer system that is using segmentation has a logical address space that can be viewed as multiple segments. • And the size of the segment is of the variable that is it may grow or shrink. • During the execution each segment has a name and length. • The address mainly specifies both thing name of the segment and the displacement within the segment.
  • 8. • Thus the logical address consists of two tuples: <segment-number,offset> where, • Segment Number(s): Segment Number is used to represent the number of bits that are required to represent the segment. • Offset(d) Segment offset is used to represent the number of bits that are required to represent the size of the segment.
  • 9.
  • 10. Translation of Two dimensional Logical Address to one dimensional Physical Address.
  • 11. Segmentation Architecture - Segment Table • A Table that is used to store the information of all segments of the process is commonly known as Segment Table. Generally, there is no simple relationship between logical addresses and physical addresses in this scheme. • The mapping of a two-dimensional Logical address into a one-dimensional Physical address is done using the segment table. • This table is mainly stored as a separate segment in the main memory. • The table that stores the base address of the segment table is commonly known as the Segment table base register (STBR) • In the segment table each entry has : • Segment Base/base address: The segment base mainly contains the starting physical address where the segments reside in the memory. • Segment Limit: The segment limit is mainly used to specify the length of the segment. • Segment Table Base Register(STBR) The STBR register is used to point the segment table's location in the memory. • Segment Table Length Register(STLR) This register indicates the number of segments used by a program. The segment number s is legal if s<STLR
  • 12. Segmentation Hardware • The logical address generated by CPU consist of two parts: • Segment Number(s): It is used as an index into the segment table. • Offset(d): It must lie in between '0' and 'segment limit'.In this case, if the Offset exceeds the segment limit then the trap is generated. correct offset+segment base= address in Physical memory • segment table is basically an array of base-limit register pair.