[OSTEP Chapter 13] The Abstraction : Address Spaces

For program:

stack keep track and pass parameters and return values to and from routines

heap is used for dynamically-allocated, user-managed memory

Goal of virtual memmory system:

  1. transparency 透明化 ,程序不需要意识到内存被虚拟化,让程序以为自己访问的是实际的物理内存
  2. efficiency 效率,OS需要力争在时间和空间上让程序运行更有效率
  3. protection 保护安全,OS需要保护各个进程之间的内存安全

当你写C语言程序的时候你看到的指针地址实际就是虚拟内存地址

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *