[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C程序怎样分配大于1GB的内存?



On Wed, 15 Jun 2005 00:00:32 +0800
Xing-qiang Lu <deerlux@gmail.com> wrote:
> 我们的服务器的内存有4GB,但是一次只能malloc 1GB的内存,请问怎么才能分配更多的内存呢?

malloc and free are nothing with an OS kernel or a process. It's total libC paradigm.
Please forget the malloc and free, and look at the brk implementation first.



Reply to: