SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
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.
Segmentation in operating systems
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.

More Related Content

PPTX
Segmentation in Operating Systems.
PPTX
Presentation on Segmentation
PPTX
Operating Systems: Virtual Memory
PPTX
Os unit 3
PPTX
Memory management
PPTX
Virtual Memory
PPT
Memory allocation (4)
PPT
Virtual memory
Segmentation in Operating Systems.
Presentation on Segmentation
Operating Systems: Virtual Memory
Os unit 3
Memory management
Virtual Memory
Memory allocation (4)
Virtual memory

What's hot (20)

PPTX
contiguous memory allocation.pptx
PDF
Memory management
PPT
Paging.ppt
PPTX
Deadlock Prevention
PPS
Virtual memory
PPT
Memory Management in OS
PPTX
Paging and segmentation
PPTX
Page replacement algorithms
PPTX
Fragmentaton
PPT
16. Concurrency Control in DBMS
PDF
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
PDF
8 memory management strategies
PPT
Disk scheduling
PPTX
Operating system memory management
PPTX
Structure of the page table
PPTX
File system structure
PPT
13. Query Processing in DBMS
PPTX
database recovery techniques
PPT
Memory management
PPTX
Lock based protocols
contiguous memory allocation.pptx
Memory management
Paging.ppt
Deadlock Prevention
Virtual memory
Memory Management in OS
Paging and segmentation
Page replacement algorithms
Fragmentaton
16. Concurrency Control in DBMS
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
8 memory management strategies
Disk scheduling
Operating system memory management
Structure of the page table
File system structure
13. Query Processing in DBMS
database recovery techniques
Memory management
Lock based protocols
Ad

Similar to Segmentation in operating systems (20)

PPTX
ppt on Segmentation in operationg system
PPT
37 segmentation
DOCX
PAGIN AND SEGMENTATION.docx
PPTX
Combined paging and segmentation
PPT
Segmentation geekssay.com
PPT
Segmentation
PPTX
os ppt.pptx
PPT
os presentation.ppt
PPTX
Os presentation
PDF
CSI-503 - 8.Paging and Segmentation
PPTX
Paging & segmentation; advantages and disadvantage
PPTX
Memory sementation sem
PDF
8086 memory segmentation
PPTX
Main Memory
PPTX
Segmentation
PPT
unit-4 class (2).ppt,Memory managements part-1
PPTX
Memory Management in System Designing.pptx
PPTX
Paging +Algorithem+Segmentation+memory management
PPT
Chapter 2 part 1
ppt on Segmentation in operationg system
37 segmentation
PAGIN AND SEGMENTATION.docx
Combined paging and segmentation
Segmentation geekssay.com
Segmentation
os ppt.pptx
os presentation.ppt
Os presentation
CSI-503 - 8.Paging and Segmentation
Paging & segmentation; advantages and disadvantage
Memory sementation sem
8086 memory segmentation
Main Memory
Segmentation
unit-4 class (2).ppt,Memory managements part-1
Memory Management in System Designing.pptx
Paging +Algorithem+Segmentation+memory management
Chapter 2 part 1
Ad

More from Dr. Jasmine Beulah Gnanadurai (20)

PPTX
Chapter 4 Requirements Engineering2.pptx
PPTX
Chapter 4 Requirement Engineering1 .pptx
PPTX
Chapter 2 Software Processes Processes.pptx
PPT
Programming in Python Lists and its methods .ppt
PPT
Introduction to UML, class diagrams, sequence diagrams
PPT
Software Process Models in Software Engineering
PPT
ch03-Data Modeling Using the Entity-Relationship (ER) Model.ppt
PPT
Process Model in Software Engineering Concepts
PPTX
Arrays and Detailed explanation of Array
PPTX
Data Warehouse_Architecture.pptx
PPTX
DMQL(Data Mining Query Language).pptx
PPTX
PPTX
KBS Architecture.pptx
PPTX
Knowledge Representation in AI.pptx
PPTX
File allocation methods (1)
PPTX
Association rules apriori algorithm
PPTX
Big data architecture
Chapter 4 Requirements Engineering2.pptx
Chapter 4 Requirement Engineering1 .pptx
Chapter 2 Software Processes Processes.pptx
Programming in Python Lists and its methods .ppt
Introduction to UML, class diagrams, sequence diagrams
Software Process Models in Software Engineering
ch03-Data Modeling Using the Entity-Relationship (ER) Model.ppt
Process Model in Software Engineering Concepts
Arrays and Detailed explanation of Array
Data Warehouse_Architecture.pptx
DMQL(Data Mining Query Language).pptx
KBS Architecture.pptx
Knowledge Representation in AI.pptx
File allocation methods (1)
Association rules apriori algorithm
Big data architecture

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Institutional Correction lecture only . . .
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Computing-Curriculum for Schools in Ghana
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Classroom Observation Tools for Teachers
PDF
Basic Mud Logging Guide for educational purpose
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
master seminar digital applications in india
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Pre independence Education in Inndia.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Institutional Correction lecture only . . .
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial disease of the cardiovascular and lymphatic systems
Computing-Curriculum for Schools in Ghana
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Microbial diseases, their pathogenesis and prophylaxis
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
GDM (1) (1).pptx small presentation for students
Classroom Observation Tools for Teachers
Basic Mud Logging Guide for educational purpose
O5-L3 Freight Transport Ops (International) V1.pdf
Renaissance Architecture: A Journey from Faith to Humanism
master seminar digital applications in india
Sports Quiz easy sports quiz sports quiz
Pre independence Education in Inndia.pdf

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.
  • 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.