《操作系统》课程PPT教学课件(英文)内存管理 Memory Management

Chapter 7 Memory Management Basic requirements of Memory Management Memory Partitioning Basic blocks of memory management Paging Segmentation
1 Chapter 7 Memory Management • Basic requirements of Memory Management • Memory Partitioning • Basic blocks of memory management – Paging – Segmentation

The need for memory management Memory is cheap today, and getting cheaper But applications are demanding more and more memory, there is never enough Memory Management involves swapping blocks of data from secondary storage Memory /o is slow compared to a CPu The os must cleverly time the swapping to maximise the CPUs efficiency
2 The need for memory management • Memory is cheap today, and getting cheaper – But applications are demanding more and more memory, there is never enough! • Memory Management involves swapping blocks of data from secondary storage. • Memory I/O is slow compared to a CPU – The OS must cleverly time the swapping to maximise the CPU’s efficiency

Memory Management A program must be loaded into main memory to be executed Memory needs to be allocated to ensure a reasonable supply of ready processes to consume available processor time otherwise, for much of the time all of the processes will be waiting for l/ 0 and the processor W‖ i be idle
3 Memory Management Memory needs to be allocated to ensure a reasonable supply of ready processes to consume available processor time – Otherwise, for much of the time all of the processes will be waiting for I/O and the processor will be idle. A program must be loaded into main memory to be executed

Memory Management Requirements ·Re| ocation Protection Sharing Logical organisation Physical organisation
4 Memory Management Requirements • Relocation • Protection • Sharing • Logical organisation • Physical organisation

REquirements: Relocation The programmer does not know where the program will be placed in memory when it is executed it may be swapped to disk and return to main memory at a different location(relocated But, os knows because it is managing memory and is responsible for bringing this process into main memory
5 Requirements: Relocation • The programmer does not know where the program will be placed in memory when it is executed, – it may be swapped to disk and return to main memory at a different location (relocated) • But, OS knows because it is managing memory and is responsible for bringing this process into main memory

Addressing Process control information Process Control Block Entry pon to program Branch togram Instruction Increasing address valules Reference to data The processor and os must be ata able to translate the memory references found in the code of current top f stack the program into actual physical Stack memory addresses(to be discussed
6 Addressing The processor and OS must be able to translate the memory references found in the code of the program into actual physical memory addresses (to be discussed)

Requirements: Protection Processes should not be able to reference memory locations in another process Without permission Impossible to check absolute addresses at compile time Must be checked at run time
7 Requirements: Protection • Processes should not be able to reference memory locations in another process without permission • Impossible to check absolute addresses at compile time • Must be checked at run time

Requirements: Sharing Allow several processes to access the same portion of memory Better to allow each process executing the same program access to the same copy of the program rather than have their own separate copy Processes that are cooperating on some task may need to share access to the same data structure
8 Requirements: Sharing • Allow several processes to access the same portion of memory – Better to allow each process executing the same program access to the same copy of the program rather than have their own separate copy – Processes that are cooperating on some task may need to share access to the same data structure

Requirements Logical Organization Memory is organized linearly (usually) n contrast, programs are organized into modules Modules can be written and compiled independentl Different degrees of protection can be given to different modules(read-only, execute-only) Modules can be shared among processes Segmentation helps here
9 Requirements: Logical Organization • Memory is organized linearly (usually) • In contrast, programs are organized into modules – Modules can be written and compiled independently – Different degrees of protection can be given to different modules (read-only, execute-only) – Modules can be shared among processes • Segmentation helps here

Requirements: Physical Organization Cannot leave the programmer with the responsibility to manage memory Memory available for a program plus its data may be insufficient Programmer does not know how much space will be available The task of moving information between the two levels of memory should be a system responsibility 10
10 Requirements: Physical Organization • Cannot leave the programmer with the responsibility to manage memory – Memory available for a program plus its data may be insufficient – Programmer does not know how much space will be available • The task of moving information between the two levels of memory should be a system responsibility
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 湖南生物机电职业技术学院:《电子商务概论》课程教学资源(PPT课件)第八章 电子商务安全.ppt
- 电子科技大学:《计算机操作系统》课程教学资源(PPT课件讲稿)第四章 设备管理 Device Management and Disk Scheduling.ppt
- 南京大学:模型检测(PPT课件讲稿)Model Checking.pptx
- 《计算机网络》课程教学大纲 Computer Networks.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux的进程(1/3).ppt
- 合肥工业大学:《数据库系统概论》课程教学资源(PPT课件)第四章 并发控制.ppt
- Phase Change Memory Aware Data Management and Application.pptx
- 《高级程序语言》课程教学资源(PPT课件讲稿)第09章 平台无关语言.ppt
- 并行算法 Parallel Algorithms(PPT讲稿)现状与展望 status and prospects.ppt
- 上海交通大学:Network Coding for Wireless Networks(PPT讲稿).pptx
- 西安电子科技大学:《现代密码学》课程教学资源(PPT课件讲稿)第七章 密码协议.pptx
- 北京大学:网络搜索引擎原理(PPT讲稿)Web Graph & Link Analysis.ppt
- 《数据结构 Data Structure》课程教学资源(PPT课件讲稿)第二章 线性表.ppt
- 大庆职业学院:《计算机网络技术基础》课程电子教案(PPT教学课件)第3章 网络体系结构与协议.ppt
- 《微型计算机原理及应用》课程教学资源(PPT课件讲稿)第6章 输入输出与中断.ppt
- 信息化技术中心:网络安全意识培训(PPT讲稿).pptx
- 徐州师范大学:《电子商务 Electronic Business》课程教学资源(PPT课件讲稿)电子商务安全实验、数字证书应用.ppt
- Generic Programming(PPT课件讲稿)Templates and Overloading.ppt
- 西安电子科技大学:《操作系统 Operating Systems》课程教学资源(PPT课件讲稿)Chapter 01 Introduction(主讲:高海昌).ppt
- 四川大学:《数据结构》课程教学资源(PPT课件讲稿)第七章 查找 Search.ppt
- 上海交通大学:IT项目管理(PPT讲稿)讲座6 软件项目工作量估算.ppt
- 四川大学:《数据库技术》课程教学资源(PPT课件讲稿)第9章 数据库系统开发工具VB.ppt
- 合肥学院:《数据库原理与应用》课程教学资源(PPT课件)第4章 数据库的创建与管理.ppt
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)第3章 流水线技术.ppt
- 系统软件与软件安全(PPT讲稿)构造安全、高效的系统软件.pptx
- 计算机问题求解(PPT讲稿)图的计算机表示以及遍历.pptx
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 03 Standard Template Library & Generic Programming.ppt
- Scanning Electron Microscopy(SEM).ppt
- 《C语言程序设计》课程教学资源(PPT课件)第6章数据类型和表达式.ppt
- 面向对象编程 Object-Oriented Programming(PPT课件讲稿)继承 Inheritance.ppt
- 《单片机应用技术》课程PPT教学课件(C语言版)第7章 定时器/计数器.ppt
- 清华大学:《计算机导论》课程电子教案(PPT教学课件)第8章 计算机领域的典型问题.ppt
- 《网站设计与建设 Website design and developments》课程教学资源(PPT课件讲稿)第三部分 网站设计技术 第10章 HTML基础.ppt
- 山东大学:《面向对象程序设计》课程教学资源(PPT课件讲稿)第四章 编写对象接口.ppt
- 中国科学技术大学:《机器学习》课程PPT教学课件(讲稿)第二章 模型评估与选择.pptx
- 《C语言程序设计》课程电子教案(PPT课件)第三章 控制语句.ppt
- 安徽理工大学:《计算机网络》课程PPT教学课件(第4版)第1章 概述(编著:谢希仁).ppt
- 中国人民大学:《数据库系统概论 An Introduction to Database System》课程教学资源(PPT课件讲稿)第九章 关系查询处理和查询优化.ppt
- 《人工智能技术导论》课程教学资源(PPT课件讲稿)第8章 不确定性知识的表示与推理.ppt
- 福建工程学院:《C#程序设计》课程教学资源(实验指导书).doc