Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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...
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 t...
Segmentation Architecture:
Logical address consists of a two tuple:
<segment-number, offset>,
Segment table – maps two-dim...
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 segmen...
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-an...
Siraj Munir – CS@DSU
Thankyou!
12/21/2016 15
Upcoming SlideShare
Loading in …5
×
Upcoming SlideShare
Inter Process Communication Presentation[1]
Next
Download to read offline and view in fullscreen.

6

Share

Download to read offline

Segmentation in Operating Systems.

Download to read offline

Segmentation topic is presented in a most easy way.
Segmentation is a user view of memory in Operating System. Segmentation is one of the most common ways to achieve memory protection. In a computer system using segmentation, an instruction operand that refers to a memory location includes a value that identifies a segment and an offset within that segment.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Segmentation in Operating Systems.

  1. 1. Welcome!! Siraj Munir – CS@DSU12/21/2016 1
  2. 2. CS206 Operating System Siraj Munir – CS@DSU12/21/2016 2
  3. 3. Tip of The Day discourager.ignore(); (Courtesy: Syed Hammad Ahmed – CS@DSU) 12/21/2016 3
  4. 4. Recap: • Contiguous Memory • Fragmentation Siraj Munir – CS@DSU 12/21/2016 4
  5. 5. Segmentation 12/21/2016 5
  6. 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. 7. User’s View of a Program: Siraj Munir – CS@DSU 12/21/2016 7
  8. 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. 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. 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. 11. Segmentation Hardware: Siraj Munir – CS@DSU 12/21/2016 11
  12. 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. 13. Siraj Munir – CS@DSU Questions?? 12/21/2016 13
  14. 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. 15. Siraj Munir – CS@DSU Thankyou! 12/21/2016 15
  • ShashankKushwaha7

    Apr. 10, 2019
  • wyomeshtripathi

    Jun. 19, 2018
  • vidhya1528

    Feb. 28, 2018
  • HkSingh7

    Nov. 3, 2017
  • HazratWali4

    Apr. 29, 2017
  • SatishVanjara

    Apr. 5, 2017

Segmentation topic is presented in a most easy way. Segmentation is a user view of memory in Operating System. Segmentation is one of the most common ways to achieve memory protection. In a computer system using segmentation, an instruction operand that refers to a memory location includes a value that identifies a segment and an offset within that segment.

Views

Total views

8,583

On Slideshare

0

From embeds

0

Number of embeds

11

Actions

Downloads

151

Shares

0

Comments

0

Likes

6

×