物理内存和虚拟内存 PHYSICAL AND VIRTUAL MEMORY 陈剑波 1997-01-01   Physical memory consists of all the writable memory locations in the computer.Physical memory is used to store  such  items  as  the operating system ,video data,and instructions and data the computer uses to run programs.   物理内存包括所有位于计算机内的可写内存。物理内存用于储存诸如操作系统、视频数据及计算机用于运行程序的指令和数据之类的内容。   Virtual memory is memory that appears to be allocated to application programs.The operating system uses a portion of the hard disk as virtual memory,swapping data and instructions between the hard disk and physical memory.   虚拟内存可视为分配给应用程序的内存。操作系统使用硬盘的一部分作为虚拟内存,在硬盘和物理内存之间交换数据和指令。   Virtual memory makes multitasking possible,In a multitasking session,the memory reqirements of all the programs that might be running in the system at the same time can far exceed the amount of physical memory that is availabe.The operating system allocates virtual memory to meet the total memory requirements of each program,and then manages the available physical memory to meet the actual requirements at given pointin time. Thus,the amount of virtual memory that is allocated can be much greater than the amount of physical memory installed in the computer.   虚拟内存使多任务成为可能。在执行多任务期间,系统中可能运行的所有程序的内存需求在同一时间内远超过可用的物理内存容量。操作系统就分配虚拟内存以满足每个程序的总的内存需求,然后管理可用的物理内存以便及时地在给定的时刻满足实际的内存需求。所以.被分配的虚拟内存的容量可以远大于计算机内安装的物理内存容量。