Chapter 7 Memory Management Goals of memory management subdividing memory to accommodate multiple processes(为支持多道程序将内存进行划分) Memory needs to be allocated to ensure a reasonable supply of ready processes to consume available processor time(内存管理应确保有适当数目的就 绪进程使用处理器时间)
2 Chapter 7 Memory Management • Goals of memory management • subdividing memory to accommodate multiple processes(为支持多道程序将内存进行划分) • Memory needs to be allocated to ensure a reasonable supply of ready processes to consume available processor time(内存管理应确保有适当数目的就 绪进程使用处理器时间)
Chapter 7 Memory Management The external view of the Memory Manager Application Program VirtualAlloc( exec o) shmalloc( tulloCk( VirtualFree( getrlimit( ZeroMemory( UNIX Windows Hardware
Chapter 7 Memory Management • The External View of the Memory Manager 3
Chapter 7 Memory Management 7.1 Memory management Requirements 7.2 Memory Partitioning ·7.3 Paging 7.4 Segmentation 7.5 Summary
4 Chapter 7 Memory Management • 7.1 Memory Management Requirements • 7.2 Memory Partitioning • 7.3 Paging • 7.4 Segmentation • 7.5 Summary
7.1 Memory Management Requirements 7. 1. 1 Five requirements 7.1.2 Preparing program for Execution
5 7.1 Memory Management Requirements • 7.1.1 Five requirements • 7.1.2 Preparing Program for Execution
7.1.1 Five requirements(1/6) ·1.Re| ocation We need to relocate the process to a different area of memory Programmer does not know where the program will be placed in memory when it is executed While the program is executing, it may be swapped(交换) to disk and returned to main memory at a different location(relocated) Memory references(访问) found in the code must be translated to actual physical memory address(物理内存地址)
7.1.1 Five requirements(1/6) • 1. Relocation • We need to relocate the process to a different area of memory. • Programmer does not know where the program will be placed in memory when it is executed. • While the program is executing, it may be swapped(交换) to disk and returned to main memory at a different location (relocated). • Memory references(访问) found in the code must be translated to actual physical memory address(物理内存地址). 6