Author: James CE Johnson

ACE Tutorial 021
Pooling your memories

As you can see, using a memory pool is really rather easy. The most difficult part, as always, is with the synch mechanisms.

The other nice thing about ACE_Malloc<> is that you can swap between System V shared memory and memory mapped files just by changing the template parameters. The truly adventurous will likely find a runtime way of doing this.

- Makefile
- server.cpp
- client.cpp
- mpool.h
- mpool.cpp

[Tutorial Index]