操作系统概念英文课件:Chapter 8 Memory Management (2).pptVIP

  • 2
  • 0
  • 约6.58千字
  • 约 45页
  • 2020-12-30 发布于安徽
  • 举报

操作系统概念英文课件:Chapter 8 Memory Management (2).ppt

Operating System Concepts User’s View of a Program Operating System Concepts Logical View of Segmentation 1 3 2 4 1 4 2 3 user space physical memory space Operating System Concepts 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. Operating System Concepts 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. Operating System Concepts Segmentation Architecture (Cont.) Relocation. dynamic by segment table Operating System Concepts Sharing. shared segments same segment number Allocation. first fit/best fit external fragmentation Operating System Concepts Segmentation Architecture (Cont.) Protection. With each entry in segment table associate: validation bit = 0 ? illegal segment read/write/execute privileges Protection bits associated with segments; code sharing occurs at segment level. Operating System Concepts Since segments vary in length, memory allocation is a dynamic storage-allocation problem. A segmentation example is shown in the following diagram Operating System Concepts Segmentation Hardware Operating System Concepts Example of Segmentation Operating System Concepts Sharing of Segments Operating System Concepts Example: The Intel Pentium Supports both segmentation and segmentation with paging CPU generates logical address Given to segmentation unit Which produces linear addresses Linear address given to paging unit Which generates physical address in main memory Paging units form equivalent of MMU Operating System Concepts Logical to Physical Address Translation in Pentium Operating System Concepts Intel Pentium Segmentation Operating System Con

文档评论(0)

1亿VIP精品文档

相关文档