Memory Pool

Memory Pool

Memory pools, also called fixed-size-blocks allocation, allow dynamic memory allocation comparable to malloc or C++'s operator new. As those implementations suffer from fragmentation because of variable block sizes, it can be impossible to use them in a real time system due to performance. A more efficient solution is 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 run time.

Many real-time operating systems use memory pools, such as the Transaction Processing Facility.

Some systems, like the web server Nginx, use the term memory pool to refer to a group of variable-size allocations which can be later deallocated all at once. This is also known as a region; see region-based memory management.

Read more about Memory Pool:  Sample Memory Pool Implementation, Memory Pool Vs Malloc

Famous quotes containing the words memory and/or pool:

    We find that even the parents who justify spanking to themselves are defensive and embarrassed about it....I suspect that deep in the memory of every parent are the feelings that had attended his own childhood spankings, the feelings of humiliation, of helplessness, of submission through fear. The parent who finds himself spanking his own child cannot dispel the ghosts of his own childhood.
    Selma H. Fraiberg (20th century)

    ... this dream that men shall cease to waste strength in competition and shall come to pool their powers of production is coming to pass all over the earth.
    Jane Addams (1860–1935)