what a malloc has to do

1) Allocate a chunk of memory big enough to satisfy the request, and return a pointer to it.
2) Remember which chunks of ram are in use and which aren't.
3) Combine free chunks to make bigger ones.

posted @ 2014-09-15 13:49  zmiao  阅读(112)  评论(0)    收藏  举报