我读了这个article这是关于 Managing heap memory
的,由 Randy Kath 编写。
我会问这个部分:
Every process in Windows has one heap called the default heap. Processes can also have as many other dynamic heaps as they wish, simply by creating and destroying them on the fly. The system uses the default heap for all global and local memory management functions, and the C run-time library uses the default heap for supporting malloc functions.
我不明白默认堆的功能或好处是什么?
另外,我还有一个问题,作者一直提到reserved and committed space
,committed space
是什么意思?
最佳答案
应用程序需要堆来分配动态内存。 Windows 自动为每个进程创建一个堆。这是默认堆。大多数应用只使用这个单一的默认堆。
提交 是将保留 虚拟地址分配给特定内存的行为,以便它可供进程使用。我建议您阅读 MSDN 上的这篇文章:Managing Virtual Memory .
关于windows - 进程的默认堆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8280942/