Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Memory Allocation

31 views
Skip to first unread message

k2sandhu

unread,
Apr 11, 2012, 9:27:30 AM4/11/12
to
What exactly is fixed-sized allocation and variable-sized allocation?
What is the difference between the two?

Jeremy Roman

unread,
Apr 11, 2012, 11:05:24 AM4/11/12
to
k2sandhu wrote:

> What exactly is fixed-sized allocation and variable-sized allocation?
> What is the difference between the two?

A fixed-size allocator assumes that all allocations are of some fixed size
(e.g. all allocations are 8 bytes).

A variable-size allocator must be able to handle allocation requests of
different sizes.

0 new messages