In addition to the process’ default heap, you can create additional heaps in your process’ address space. You would want to create additional heaps in your own applications for the following reasons:
More efficient memory management
Avoiding thread synchronization overhead
Let’s examine each reason in detail.
Imagine that your application needs to process two components: a linked list of
NODE structures and a binary tree of
BRANCH structures. You have two source code files: LinkList.cpp, which contains the functions that process the linked list of
NODEs, and BinTree.cpp, which contains the functions that process the binary tree of