Saturday, April 12, 2008

Why Dynamic Allocation is slower and may fail?

Usually, memory is allocated from a large pool of unused memory area called the heap (also called the free store). Since the precise location of the allocation is not known in advance, the memory is accessed indirectly, usually via a reference. The precise algorithm used to organize the memory area and allocate and deallocate chunks is hidden behind an abstract interface and may use any of the methods described below.

Problems during fullfiling allocation request include Internal and external fragmentation.
Memory Fragmentation

From Wikipedia


No comments:

Post a Comment