Analog Devices Interview Question

Describe how malloc() and free() work in the OS.

Interview Answer

Anonymous

Feb 11, 2010

I don't know exactly what he wanted but basically he was making sure I knew how an OS creates virtual memory and allows applications to request chunks of memory at a time and that the application is responsible for keeping track of the location with a pointer so that the OS can free memory when free() is called.