SlideShare une entreprise Scribd logo
1  sur  15
Welcome!!
Siraj Munir – CS@DSU12/21/2016 1
CS206 Operating System
Siraj Munir – CS@DSU12/21/2016 2
Tip of The Day
discourager.ignore();
(Courtesy: Syed Hammad Ahmed – CS@DSU)
12/21/2016 3
Recap:
• Contiguous Memory
• Fragmentation
Siraj Munir – CS@DSU
12/21/2016 4
Segmentation
12/21/2016 5
Segmentation:
Memory-management scheme that supports user view of memory
(Programmar’s View).
A program is a collection of segments. A segment is a logical unit such as:
• main program
• procedure
• function
• method
• object
• local variables, global variables
• common block
• stack
• symbol table
• arrays
Siraj Munir – CS@DSU
12/21/2016 6
User’s View of a Program:
Siraj Munir – CS@DSU
12/21/2016 7
Logical View of Segmentation
Siraj Munir – CS@DSU
1
2
3
4
1
4
2
3
user space physical memory space
12/21/2016 8
Segmentation :
Each segment has a name and length
Address specify both the segment name and offset
Instead of using name the segments are numbered
The logical address consists of a tuple:
<segment-number,offset>
Siraj Munir – CS@DSU
12/21/2016 9
Segmentation Architecture:
Logical address consists of a two tuple:
<segment-number, offset>,
Segment table – maps two-dimensional physical addresses; each table entry has:
base – contains the starting physical address where the segments reside in memory
limit – specifies the length of the segment
Segment-table base register (STBR) points to the segment table’s location in memory
Segment-table length register (STLR) indicates number of segments used by a program;
segment number s is legal if s < STLR
Siraj Munir – CS@DSU
12/21/2016 10
Segmentation Hardware:
Siraj Munir – CS@DSU
12/21/2016 11
Segmentation Hardware:
Logical address generated by CPU consists of two parts
Segment no. ‘s’:-used as a index into segment table
Offset ‘d’:- must be between ‘0’ and segment limit
A trap is generated if offset exceeds the segment limit
(Correct offset + segment base = address in physical memory)
Segment table is an array of base-limit register pair
Siraj Munir – CS@DSU
12/21/2016 12
Siraj Munir – CS@DSU
Questions??
12/21/2016 13
Siraj Munir – CS@DSU
Reference:
https://www.youtube.com/watch?v=HWwNTWY1rxo
http://www.slideshare.net/rajmohan50/paging-and-segmentation-in-operating-system
https://classroom.udacity.com/courses/ud923/lessons/301489
8657/concepts/30515485910923#
https://en.wikibooks.org/wiki/Operating_System_Design/Segmentation
12/21/2016 14
Siraj Munir – CS@DSU
Thankyou!
12/21/2016 15

Contenu connexe

Tendances

Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed systemSunita Sahu
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Gyanmanjari Institute Of Technology
 
Structure of the page table
Structure of the page tableStructure of the page table
Structure of the page tableduvvuru madhuri
 
Memory management ppt
Memory management pptMemory management ppt
Memory management pptManishaJha43
 
Virtual memory
Virtual memoryVirtual memory
Virtual memoryAnuj Modi
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptxRajapriya82
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxLECO9
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentationhamza haseeb
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategiesDr. Loganathan R
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSKumar Pritam
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
 

Tendances (20)

Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
 
Structure of the page table
Structure of the page tableStructure of the page table
Structure of the page table
 
Memory management ppt
Memory management pptMemory management ppt
Memory management ppt
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Segmentation in operating systems
Segmentation in operating systemsSegmentation in operating systems
Segmentation in operating systems
 
File allocation methods (1)
File allocation methods (1)File allocation methods (1)
File allocation methods (1)
 
System calls
System callsSystem calls
System calls
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentation
 
Deadlock ppt
Deadlock ppt Deadlock ppt
Deadlock ppt
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategies
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 

Similaire à Segmentation in Operating Systems.

30635395 synopsis-of-bus-information-system
30635395 synopsis-of-bus-information-system30635395 synopsis-of-bus-information-system
30635395 synopsis-of-bus-information-systemHiren Joshi
 
Unix Virtual Memory, Linux Virtual Memory & Virtual Memory using Segmentation
Unix Virtual Memory, Linux Virtual Memory & Virtual Memory using SegmentationUnix Virtual Memory, Linux Virtual Memory & Virtual Memory using Segmentation
Unix Virtual Memory, Linux Virtual Memory & Virtual Memory using SegmentationMeghaj Mallick
 
Virtual Memory (Making a Process)
Virtual Memory (Making a Process)Virtual Memory (Making a Process)
Virtual Memory (Making a Process)David Evans
 
Habits of Effective SAS Programmers
Habits of Effective SAS ProgrammersHabits of Effective SAS Programmers
Habits of Effective SAS ProgrammersSunil Gupta
 
115213708study material-cs-xi-2012-13
115213708study material-cs-xi-2012-13115213708study material-cs-xi-2012-13
115213708study material-cs-xi-2012-13pavan kumar
 
Running head 3D PRINTINGThe development of the 3D system will .docx
Running head  3D PRINTINGThe development of the 3D system will .docxRunning head  3D PRINTINGThe development of the 3D system will .docx
Running head 3D PRINTINGThe development of the 3D system will .docxSUBHI7
 
VJITSk 6713 user manual
VJITSk 6713 user manualVJITSk 6713 user manual
VJITSk 6713 user manualkot seelam
 
Datastax day 2016 : Cassandra data modeling basics
Datastax day 2016 : Cassandra data modeling basicsDatastax day 2016 : Cassandra data modeling basics
Datastax day 2016 : Cassandra data modeling basicsDuyhai Doan
 
Computer org Architecture module2 ppt.pdf
Computer org Architecture module2 ppt.pdfComputer org Architecture module2 ppt.pdf
Computer org Architecture module2 ppt.pdfTSANKARARAO
 
Open Channel SSD Controller
Open Channel SSD ControllerOpen Channel SSD Controller
Open Channel SSD ControllerSilicon Motion
 
CS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptxCS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptxAsst.prof M.Gokilavani
 
class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)gaurav kumar
 
Segmentation.ppt
Segmentation.pptSegmentation.ppt
Segmentation.pptinfomerlin
 
Electronics product design companies in bangalore
Electronics product design companies in bangaloreElectronics product design companies in bangalore
Electronics product design companies in bangaloreAshok Kumar.k
 
Scalable Parallel Performance Measurement with the Scalasca Toolset
Scalable Parallel Performance Measurement with the Scalasca ToolsetScalable Parallel Performance Measurement with the Scalasca Toolset
Scalable Parallel Performance Measurement with the Scalasca ToolsetIntel IT Center
 
HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57
HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57
HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57AAMIR FAROOQUI
 

Similaire à Segmentation in Operating Systems. (20)

30635395 synopsis-of-bus-information-system
30635395 synopsis-of-bus-information-system30635395 synopsis-of-bus-information-system
30635395 synopsis-of-bus-information-system
 
Unix Virtual Memory, Linux Virtual Memory & Virtual Memory using Segmentation
Unix Virtual Memory, Linux Virtual Memory & Virtual Memory using SegmentationUnix Virtual Memory, Linux Virtual Memory & Virtual Memory using Segmentation
Unix Virtual Memory, Linux Virtual Memory & Virtual Memory using Segmentation
 
Virtual Memory (Making a Process)
Virtual Memory (Making a Process)Virtual Memory (Making a Process)
Virtual Memory (Making a Process)
 
Chadalavada, Divya Sai
Chadalavada, Divya SaiChadalavada, Divya Sai
Chadalavada, Divya Sai
 
Habits of Effective SAS Programmers
Habits of Effective SAS ProgrammersHabits of Effective SAS Programmers
Habits of Effective SAS Programmers
 
115213708study material-cs-xi-2012-13
115213708study material-cs-xi-2012-13115213708study material-cs-xi-2012-13
115213708study material-cs-xi-2012-13
 
Running head 3D PRINTINGThe development of the 3D system will .docx
Running head  3D PRINTINGThe development of the 3D system will .docxRunning head  3D PRINTINGThe development of the 3D system will .docx
Running head 3D PRINTINGThe development of the 3D system will .docx
 
VJITSk 6713 user manual
VJITSk 6713 user manualVJITSk 6713 user manual
VJITSk 6713 user manual
 
Datastax day 2016 : Cassandra data modeling basics
Datastax day 2016 : Cassandra data modeling basicsDatastax day 2016 : Cassandra data modeling basics
Datastax day 2016 : Cassandra data modeling basics
 
Computer org Architecture module2 ppt.pdf
Computer org Architecture module2 ppt.pdfComputer org Architecture module2 ppt.pdf
Computer org Architecture module2 ppt.pdf
 
L09-handout.pdf
L09-handout.pdfL09-handout.pdf
L09-handout.pdf
 
Open Channel SSD Controller
Open Channel SSD ControllerOpen Channel SSD Controller
Open Channel SSD Controller
 
Webinar on radar
Webinar on radarWebinar on radar
Webinar on radar
 
CS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptxCS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptx
 
class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)class 12 board project on database connectivity (java to SQL)
class 12 board project on database connectivity (java to SQL)
 
Sadcw 6e chapter6
Sadcw 6e chapter6Sadcw 6e chapter6
Sadcw 6e chapter6
 
Segmentation.ppt
Segmentation.pptSegmentation.ppt
Segmentation.ppt
 
Electronics product design companies in bangalore
Electronics product design companies in bangaloreElectronics product design companies in bangalore
Electronics product design companies in bangalore
 
Scalable Parallel Performance Measurement with the Scalasca Toolset
Scalable Parallel Performance Measurement with the Scalasca ToolsetScalable Parallel Performance Measurement with the Scalasca Toolset
Scalable Parallel Performance Measurement with the Scalasca Toolset
 
HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57
HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57
HC28.22.430-Vision-Neural-Net-GregEfland-Cadence-v02-57
 

Dernier

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 

Dernier (20)

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 

Segmentation in Operating Systems.

  • 1. Welcome!! Siraj Munir – CS@DSU12/21/2016 1
  • 2. CS206 Operating System Siraj Munir – CS@DSU12/21/2016 2
  • 3. Tip of The Day discourager.ignore(); (Courtesy: Syed Hammad Ahmed – CS@DSU) 12/21/2016 3
  • 4. Recap: • Contiguous Memory • Fragmentation Siraj Munir – CS@DSU 12/21/2016 4
  • 6. Segmentation: Memory-management scheme that supports user view of memory (Programmar’s View). A program is a collection of segments. A segment is a logical unit such as: • main program • procedure • function • method • object • local variables, global variables • common block • stack • symbol table • arrays Siraj Munir – CS@DSU 12/21/2016 6
  • 7. User’s View of a Program: Siraj Munir – CS@DSU 12/21/2016 7
  • 8. Logical View of Segmentation Siraj Munir – CS@DSU 1 2 3 4 1 4 2 3 user space physical memory space 12/21/2016 8
  • 9. Segmentation : Each segment has a name and length Address specify both the segment name and offset Instead of using name the segments are numbered The logical address consists of a tuple: <segment-number,offset> Siraj Munir – CS@DSU 12/21/2016 9
  • 10. Segmentation Architecture: Logical address consists of a two tuple: <segment-number, offset>, Segment table – maps two-dimensional physical addresses; each table entry has: base – contains the starting physical address where the segments reside in memory limit – specifies the length of the segment Segment-table base register (STBR) points to the segment table’s location in memory Segment-table length register (STLR) indicates number of segments used by a program; segment number s is legal if s < STLR Siraj Munir – CS@DSU 12/21/2016 10
  • 11. Segmentation Hardware: Siraj Munir – CS@DSU 12/21/2016 11
  • 12. Segmentation Hardware: Logical address generated by CPU consists of two parts Segment no. ‘s’:-used as a index into segment table Offset ‘d’:- must be between ‘0’ and segment limit A trap is generated if offset exceeds the segment limit (Correct offset + segment base = address in physical memory) Segment table is an array of base-limit register pair Siraj Munir – CS@DSU 12/21/2016 12
  • 13. Siraj Munir – CS@DSU Questions?? 12/21/2016 13
  • 14. Siraj Munir – CS@DSU Reference: https://www.youtube.com/watch?v=HWwNTWY1rxo http://www.slideshare.net/rajmohan50/paging-and-segmentation-in-operating-system https://classroom.udacity.com/courses/ud923/lessons/301489 8657/concepts/30515485910923# https://en.wikibooks.org/wiki/Operating_System_Design/Segmentation 12/21/2016 14
  • 15. Siraj Munir – CS@DSU Thankyou! 12/21/2016 15

Notes de l'éditeur

  1. Segmentation is a Memory management scheme that supports user view of memory.
  2. As we’ve already seen, the user’s view of memory is not the same as the actual physical memory. What if the hardware could provide a memory mechanism that mapped the programmer’s view to the actual physical memory? The system would have more freedom to manage memory, while the programmer would have a more natural programming environment. Segmentation provides such a mechanism.
  3. Segmentation is a Memory management scheme that supports user view of memory.
  4. User jo physical memory interact krne k liye asaani hou, 4 process hain, 1,4,2,3 ko aesay place krdia hai k 4ro k aik hisab se memory milay, Alag alag segments mei divide krde, agar koi naya process aye tou who aik format mei aajaega, bajae iske k who idhr udhr allocate hojae.
  5. Segment table has two addresses, Base and Limit, STBR location ko point krta hai, aur STLR segments ki length batata hai.