内存管理
Memory management is the act of managing computer memory. The essential requirement of memory management is to provide ways to dynamically allocate portions of memory to programs at their request, and free it for reuse when no longer needed. This is critical to any advanced computer system where more than a single process) might be underway at any time.
内存管理术语
页框 | 内存中一个固定长度的块 |
---|---|
页 | 一个固定长度的数据块,储存在二级存储中(如磁盘)。数据页可以临时复制入内存中的页框中。 |
段 | 一个变长的数据块,储存在二级存储器中。整个段可以临时复制到内存的一个可用区域内(分段),或者可以将一个段分为许多页,将每页单独复制到内存中(分段和分页相结合)。 |
内存管理需求:重定位、保护、共享、逻辑组织、物理组织
内存管理最基本的操作是由处理器把程序装入内存中执行。
内存分区
内存管理最基本的操作是由处理器把程序装入内存中执行。