Jump to content

Memory pool

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 194.204.64.99 (talk) at 13:14, 29 April 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Memory pools allow dynamic memory allocation comparable to malloc or the operator new in C++. As those implementation suffer from fragmentation because of variable block sizes, it can be impossible to use them in a real time system due to performance. Memory pools provide a more efficient solution by preallocating a number of memory blocks with the same size called the memory pool. The application can allocate, access and free blocks represented by handles at runtime.