Pool (computer science)

A pool is in the computer science a lot vorinitialisierter resources that are always ready for use, instead of being allocated each time when needed and then destroyed again. A client requests an object of the pool and leads to the returned object operations. If the client is finished with the object, it returns it to the pool instead of destroying it.

Pooling can be used in situations where Initialisierungskosten and rate of instances of a resource are high, but their simultaneous number of low, lead to a significant increase in performance. The instance of a resource in the pool can be related in a predictable time during the generation of new instances ( particularly on the network) may take different lengths of time. However, the benefits are mostly for resources whose initialization is high, such as database connections, sockets or thread and graphic objects such as fonts or bitmaps.

Examples

  • A connection pool is a cache of database connections.
  • When the storage pool large memory blocks is a default value instead of equal.
  • The printer pool print jobs are automatically distributed among printers.

Design Patterns

  • Thread pool is used for execution of tasks, usually from a queue by a pool of threads.
  • Object Pool serves the implementation of pools in object-oriented programming languages.
  • Data structure
656486
de