电子科技大学:《计算机操作系统》课程教学资源(PPT课件讲稿)第三章 存储管理 Memory Management

Chapter 3 Memory Management
Chapter 3 Memory Management

Content Why need memory management ☆ Memory partitioning 令 Paging ☆ Segmentation MEMORY MANAGEMENT
MEMORY MANAGEMENT Content ❖Why need memory management ❖Memory partitioning ❖Paging ❖Segmentation

3.1 Memory Management Requirements(p289) Relocation(重定位) A Memory protection(保护) 如 Memory sharing(共享 a Logical organization(逻辑组织) A Physical Organization(物理组织) MEMORY MANAGEMENT
MEMORY MANAGEMENT 3.1 Memory Management Requirements (p289) ♣ Relocation(重定位) ♣ Memory Protection(保护) ♣ Memory Sharing(共享) ♣ Logical Organization(逻辑组织) ♣ Physical Organization(物理组织)

Relocation(重定位p290) The processor and os translate the memory references found in the code of the program into actual physical memory addresses, which reflecting the current location of the program in main memory(程序代码中地址引用翻译为主存中当前 地址的过程) MEMORY MANAGEMENT
MEMORY MANAGEMENT Relocation (重定位p290) • The processor and OS translate the memory references found in the code of the program into actual physical memory addresses, which reflecting the current location of the program in main memory.(程序代码中地址引用翻译为主存中当前 地址的过程)

Relocation(p290) Static relocation(静态,一次性重定位 Relocate when compile program or load in program Dynamic relocation(动态,可多次重定位 Relocate when running program. Contents for relocation(定位内容) Branch instruction(分支指令) Reference to data(数据引用) MEMORY MANAGEMENT
MEMORY MANAGEMENT Relocation (p290) • Static relocation(静态,一次性重定位) • Relocate when compile program or load in program. • Dynamic relocation(动态,可多次重定位) • Relocate when running program. • Contents for relocation(定位内容) • Branch instruction(分支指令) • Reference to data (数据引用)

Process control information Process Control Bbc Entry point to program Branch Program instruction Increas ing address values Reference to data Data Current top of stack Stack Figure 7.1 Addressing Requirements for a Process
MEMORY MANAGEMENT

Memory Protection(p291) Each process should be protected against unwanted interference(访问) by other processes. All memory references generated by a process must be checked(检查) at run time The memory protection requirement is satisfied(C]) by the processor (hardware) rather than the os (software) MEMORY MANAGEMENT
MEMORY MANAGEMENT Memory Protection (p291) • Each process should be protected against unwanted interference(访问)by other processes. • All memory references generated by a process must be checked(检查) at run time. • The memory protection requirement is satisfied(完成) by the processor (hardware) rather than the OS (software)

Memory Sharing(共享p291) Share data and code for save(节省) the memory The memory-management system must allow controlled access to shared areas of memory without compromising(影响) essential protection MEMORY MANAGEMENT
MEMORY MANAGEMENT Memory Sharing(共享p291) • Share data and code for save(节省) the memory. • The memory-management system must allow controlled access to shared areas of memory without compromising(影响) essential protection

Logical Organization(p291) OS should deal with programs in the form of modules(模块) Modules can be written and compiled independently. Different degrees of protection can be given to different modules It is easy to implement share. E. g segmentation(分段管理) MEMORY MANAGEMENT
MEMORY MANAGEMENT Logical Organization(p291) • OS should deal with programs in the form of modules(模块) • Modules can be written and compiled independently. • Different degrees of protection can be given to different modules. • It is easy to implement share. • E.g. segmentation(分段管理)

Physical Organization(p292) · Computer memory is organized(组织) into at least two levels, referred to as main memory and secondary memory. Swapping the modules in and out as needed The programmer does not know how much space will be available or where that space will be MEMORY MANAGEMENT
MEMORY MANAGEMENT Physical Organization(p292) • Computer memory is organized(组织) into at least two levels, referred to as main memory and secondary memory. • Swapping the modules in and out as needed. • The programmer does not know how much space will be available or where that space will be
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)RISC-V指令集及简单实现.pptx
- 《信息安全工程》课程教学资源(PPT课件讲稿)第3章 密码学基础.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)敏捷软件开发 Agile Software Development.ppt
- 《计算机应用基础》课程教学资源(PPT课件讲稿)第5章 文件文档工具.ppt
- 西安电子科技大学:《操作系统 Operating Systems》课程教学资源(PPT课件讲稿)Chapter 05 输入输出 Input/Output.ppt
- 《人工智能》课程教学资源(PPT课件讲稿)Ch10 Auto-encoders(Auto and variational encoders v.9r6).pptx
- 《ARM Cortex-M3权威指南》课程教学资源(PPT课件讲稿)Cortex M3 存储系统访问.pptx
- 北京师范大学现代远程教育:《计算机应用基础》课程教学资源(PPT课件讲稿)第四篇 数据处理与数据分析.ppsx
- 《数字图像处理》课程教学资源(PPT课件讲稿)第八章 形态学处理.ppt
- 《计算机网络技术及应用》课程教学资源(PPT课件讲稿)第十一章 网络安全.ppt
- 《人工智能》课程教学资源(PPT课件讲稿)第13章 智能优化计算简介.ppt
- 清华大学出版社:《计算机网络安全与应用技术》课程教学资源(PPT课件讲稿)第5章 Windows NT/2000的安全与保护措施.ppt
- 上海交通大学:《计算机组成原理 Computer Organization》课程教学资源(PPT课件讲稿)Chapter 4A The Processor, Part A.pptx
- 香港城市大学:PERFORMANCE ANALYSIS OF CIRCUIT SWITCHED NETWORKS(PPT讲稿).pptx
- 《结构化程序设计》课程教学资源(PPT课件讲稿)第4章 VB控制结构.ppt
- 安徽理工大学:《算法设计与分析 Algorithm Design and Analysis》课程教学资源(PPT课件讲稿)第一章 导引与基本数据结构.ppt
- 四川大学:《操作系统 Operating System》课程教学资源(PPT课件讲稿)Chapter 1 Computer System Overview.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)分布对象 Distributed Objects(1).ppt
- 《C语言程序设计》课程教学资源(PPT课件讲稿)第10章 指针.ppt
- 北京大学:《高级软件工程》课程教学资源(PPT课件讲稿)第九讲 静态代码的可信性分析概述.ppt
- 《C语言教程》课程教学资源(PPT课件讲稿)第三章 C语言程序设计初步.ppt
- 《数据结构》课程教学资源(PPT课件讲稿)第十章 内部排序.ppt
- 清华大学:A Pivotal Prefix Based Filtering Algorithm for String Similarity Search(PPT讲稿).pptx
- 河南中医药大学(河南中医学院):《计算机文化》课程教学资源(PPT课件讲稿)第四章 计算机软件系统(主讲:许成刚、阮晓龙).ppt
- 《人工智能技术导论》课程教学资源(PPT课件讲稿)第1章 人工智能概述.ppt
- 山东大学:《微机原理及单片机接口技术》课程教学资源(PPT课件讲稿)第八章 数据通信.ppt
- 信息和通信技术ICT(PPT讲稿)浅谈信息技术和低碳经济(中国科学技术大学:王煦法).ppt
- 北京大学:网络信息体系结构(PPT讲稿)Web-based Information Architecture.ppt
- P2P Tutorial(PPT讲稿).ppt
- 微软分布式计算技术(PPT讲稿)Dryad and DryadLINQ.ppt
- 《数字图像处理》课程教学资源(PPT课件)第6章 图像复原.ppt
- 电子工业出版社:《计算机网络》课程教学资源(第五版,PPT课件讲稿)第三章 数据链路层.ppt
- 《单片机应用技术》课程PPT教学课件(C语言版)第8章 MCS-51单片机串行通信接口.ppt
- 操作系统原理(PPT讲稿)Windows OS Principles(Windows XP).pps
- 淮阴工学院:《数据库原理》课程教学资源(PPT课件讲稿)第1章 数据库概论(主讲:冯万利).pps
- 《微型计算机接口技术》课程教学资源(PPT课件讲稿)第2章 16位和32位微处理器.ppt
- 《程序设计》课程教学资源(PPT课件讲稿)第五章 函数式程序设计语言.ppt
- 链路状态路由协议(PPT讲稿)LINK STATE ROUTING PROTOCOLS.pptx
- 厦门大学:《大数据技术原理与应用》课程教学资源(PPT课件讲稿,2016)第5章 NoSQL数据库.ppt
- 北京师范大学:《多媒体技术与网页制作》课程教学资源(PPT课件)课程总复习(主讲:赵国庆).ppt