- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
操作系统英文教材课件第9章
Chapter 9: Virtual Memory虚拟内存;CHAPTER OBJECTIVES;Chapter 9: Virtual Memory;9.1 Background;Virtual memory – separation of user logical memory from physical memory. 虚拟存储--用户逻辑存储与物理存储分离 (部分加载+交换) Only part of the program needs to be in memory for execution. 仅部分程序必须在内存,以使其运行 Logical address space can therefore be much larger than physical address space. 从而逻辑地址空间远大于物理地址空间 Allows address spaces to be shared by several processes. 允许地址空间被多个进程共享 Allows for more efficient process creation. 允许更有效的进程创建;Virtual memory can be implemented via: Demand paging 请求式分页 Demand segmentation 请求式分段 However, segment-replacement algorithms are more complex than are replacement algorithms because the segments have variable sizes. 但是,段的替换算法比页替换算法复杂,因为段的大小不同 paged segmentation 段页式;Figure Virtual Memory That is Larger Than Physical Memory;9.2 Demand Paging 请求式分页;A demand-paging system is similar to a paging system with swapping. 请求式分页系统类似于分页系统+对换 But we use a lazy swapper—pager (页调度程序) Swapper vs Pager A pager never swaps a page into memory unless that page will be needed. A swapper manipulates entire processes.;Basic Concepts 基本概念;Valid-Invalid Bit 有效位 “valid” the associated page is both legal and in memory. “invalid” the page either is not valid(that is ,not in the logical address space of the process),or is valid but is currently on the disk.;Initially valid–invalid bit is set to 0 on all entries. During address translation, if valid–invalid bit in page table entry is 0 ? page fault .;Page Table When Some Pages Are Not in Main Memory;Page Fault 缺页 If there is ever a reference to a page, first reference will trap to OS ? page fault 对一个页面的首次访问将自陷到操作系统--缺页;OS checks an internal table to decide: OS 检查内置页表以确定 Invalid reference ? abort(terminate the process). Valid,Just not in memory ?page it in. Get empty frame. 获取空闲帧 Swap page into frame. 对换页面到该帧 Reset tables, validation bit = 1. 重置页表,有效位置1 Restart instruction 重启指令;Steps in Handling a Page Fault;Pure d
您可能关注的文档
最近下载
- 苏S13-2022 预制混凝土排水检查井工程图集规范 .docx VIP
- 一种钛合金离子渗氧的方法.pdf VIP
- 冀人版(2024)小学科学一年级下册《认识自然物和人造物》说课课件.pptx VIP
- 2025人教版英语八年级上册全册教学设计教案.pdf
- 刮研方法与 技巧.ppt VIP
- 摄影笔记完整版.docx VIP
- 工课:即将失传的轴瓦刮研-王震.pdf VIP
- T_CEA 0052.2-2025《电梯电缆及线束试验方法 第2部分:电气性能》.docx VIP
- T_CEA 0052.1-2025《电梯电缆及线束试验方法 第1部分:机械物理性能》.docx VIP
- 陕西省专业技术人员继续教育2025公需课《党的二十届三中全会精神解读与高质量发展》20学时题库及答案.docx VIP
有哪些信誉好的足球投注网站
文档评论(0)