Pool (computer science)

Pool (computer science)

A pool in computer science is a set of initialised resources that are kept ready to use, rather than allocated and destroyed on demand. A client of the pool will request an object from the pool and perform operations on the returned object. When the client has finished with an object (or resource), it returns it to the pool, rather than destroying it.

Pooling of resources can offer a significant performance boost in situations where the cost of initializing a class instance is high, the rate of instantiation of a class is high, and the number of instances in use at any one time is low. The pooled resource is obtained in predictable time when creation of the new objects (especially over network) may take variable time.

However these benefits are mostly true for objects which are expensive with respect to time, such as database connections, socket connections, threads and large graphic objects like fonts or bitmaps. In certain situations, simple object pooling (which hold no external resources, but only occupy memory) may not be efficient and could decrease performance [1]

Special cases are:

It can also refer to a Design Pattern to implement them in object oriented languages:

References

  1. ^ Java theory and practice: Urban performance legends, revisited

Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Thread (computer science) — This article is about the concurrency concept. For the multithreading in hardware, see Multithreading (computer architecture). For the form of code consisting entirely of subroutine calls, see Threaded code. For other uses, see Thread… …   Wikipedia

  • Garbage (computer science) — Garbage, in the context of computer science, refers to objects, data, or other regions of the memory of a computer system (or other system resources), which will not be used in any future computation by the system, or by a program running on it.… …   Wikipedia

  • Science Bowl — is a high school and middle school academic competition, similar to Quiz Bowl, held in the United States. Two teams of four students each compete to answer various science related questions. In order to determine which student has the right to… …   Wikipedia

  • Computer Law and Security Report — Computer Law Security Review   …   Wikipedia

  • Object pool pattern — For the article about a general pool see Pool (Computer science) In computer programming, an object pool is a software design pattern. An object pool is a set of initialised objects that are kept ready to use, rather than allocated and destroyed… …   Wikipedia

  • Science-Fiction-Autor — Dies ist eine Liste bedeutender Autoren von Science Fiction. A Autor Leben Sprache Werk Kōbō Abe 1924–1993 japanisch Die vierte Zwischeneiszeit Forrest J. Ackerman 1916−2008 englisch Science Fiction (Herausgeber) …   Deutsch Wikipedia

  • Science-Fiction-Autoren — Dies ist eine Liste bedeutender Autoren von Science Fiction. A Autor Leben Sprache Werk Kōbō Abe 1924–1993 japanisch Die vierte Zwischeneiszeit Forrest J. Ackerman 1916−2008 englisch Science Fiction (Herausgeber) …   Deutsch Wikipedia

  • Pool of Radiance — Infobox VG| title = Pool of Radiance developer = Strategic Simulations, Inc. publisher = Strategic Simulations, Inc. designer = engine = Gold Box released = genre = Role playing game, Tactical RPG modes = Single player ratings = platforms = Amiga …   Wikipedia

  • Computer file — This article is about computer files and file systems in general terms. For a more detailed and technical article, see File system. A computer file is a block of arbitrary information, or resource for storing information, which is available to a… …   Wikipedia

  • Pool of Radiance — Die GoldBox Serie ist eine Serie von Computer Rollenspielen. 1988 veröffentlichte SSI den ersten Teil dieser Serie, Pool of Radiance. Das Spiel verwendete die damals sehr gerne benutzte vorgezeichnete Pseudo 3D Optik, in der man die Welt… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”