下载此文档

ch09内存管理.ppt


文档分类:IT计算机 | 页数:约77页 举报非法文档有奖
1/77
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/77 下载此文档
文档列表 文档介绍
Chapter 9: Memory Management
内存是计算机系统的最重要的资源之一。
为提高响应速度及CPU的利用率,必须将多个进程同时放入内存,多进程共享内存。
本章介绍内存管理方法。内存管理方法很多,但内容主要涉及下述三个方面:
内存分配回收方法
地址映射和重定位
内存保护
1 1/21/2018
内存管理
本章讨论内存管理的各种方案,内存管理算法在不同的系统中有不同的方案,每种方案有自己的优点与缺点,选择某种方案取决于多种因素,尤其依赖于系统的硬件设计因素。
2 1/21/2018
本章内容
Background(背景)
Logical versus Physical Address Space(逻辑与物理地址空间)
Swapping (交换)
Contiguous Allocation(连续分配)
Paging(分页)
Segmentation(分段)
Segmentation with Paging(段页式)
3 1/21/2018
Background
Program must be brought into memory and placed within a process for it to be executed.(程序必需装入内存,并为其创建内存才能被执行)
Input queue – collection of processes on the disk that are waiting to be brought into memory for execution.(输入队列—磁盘上等待进入内存并执行的进程的集合)
User programs go through several steps before being executed. (用户程序在执行之前必需经历很多步骤装入、地址映射、重定位)
4 1/21/2018
Binding of Instructions and Data to Memory
Address binding of instructions and data to memory addresses can happen at three different stages.
(内存地址联编可以在三个不同的阶段发生。)
教材中用捆绑。
5 1/21/2018
指令与地址联编
Compile time(编译时期): If memory location known a priori, absolute code can be generated; must pile code if starting location changes.(如果内存位置已知,可生成绝对代码;如果开始位置改变,需要重新编译代码)
Load time(装入时期): Must generate relocatable code if memory location is not known pile time.(如果存储位置在编译时不知道,则必须生成可重定位代码)
Execution time(执行时期): Binding delayed until run time if the process can be moved during its execution from one memory segment to another. Need hardware support for address maps (., base and limit registers). (如果进程在执行时可以在内存中移动,则地址绑定要延迟到运行时。需要硬件对地址映射的支持,例如基址和限长寄存器)
6 1/21/2018

7 1/21/2018

8 1/21/2018
Dynamic Loading动太装入
Routine is not loaded until it is called.(程序在调用之前并不执行)
Better memory-space utilization; unused routine is never loaded.(更好的内存空间利用率;没有被使用的程序不被载入。)
Useful when large amounts of code are needed to handle infrequently occurring cases.(当需要大量的代码来处理不经常发生的事情时是非常有用的。)
No special support from the operating system is required implemented through program design.(不需要操作系统的特别支持,通过程序设计实

ch09内存管理 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数77
  • 收藏数0 收藏
  • 顶次数0
  • 上传人ranfand
  • 文件大小1.52 MB
  • 时间2018-01-21