The Object Pool Pattern
The object pool pattern is a variation on the singleton pattern that provides access to multiple identical objects rather than a single instance. This is useful when you have objects that represent a set of fungible resources, each of which can be used by only one component at a time. In this chapter, I describe the basic object pool pattern, and in Chapter 8 I show you some useful variations that allow object pools to adapt to different situations. Table 7-1 puts the object pool pattern in context.