[Tfug] Malloc under Linux

Brian Murphy murphy at coppershadow.com
Mon Feb 11 06:04:12 MST 2008


Quoting Felix Tilley <fetilley at earthlink.net>:
> When you use the malloc function with Linux, is the memory space
> allocated when the program runs, or when the malloc function executes?
>
> I ask this because the free function does not appear to free any memory.



http://www.linuxjournal.com/article/6390

Also lookup the "copy on write" concept.

Brian





More information about the tfug mailing list