我阅读了以下有关进程内存分配的内容:
One of the important considerations in main memory management is: how should an
OS allocate a chunk of main memory required by a process. One simple approach
would be to somehow create partitions and then different processes could
reside in different partitions.
请注意,本段出现在分页概念之前,并且正在讨论一次对整个进程的内存分配。我的问题是:
Why should we create partitions? We can just keep track of holes in the memory
and keep pointers to the beginning and end of the holes. When we allocate a
process some memory, we can associate the pointer to the beginning and end of
the process with the process and end pointer of the process serves as the
pointer to the beginning of a new hole.