Object pool pattern: Difference between revisions

Content deleted Content added
Saigyo (talk | contribs)
mNo edit summary
Line 8:
 
# Fail to provide an object (and return an error to the client)
# Allocate a new object, thus increasing the size of the pool. Pools that do this usually allow you to seeset the [[high water mark]] (the maximum number of objects ever used).
# In a [[Thread (computer science)|multithreaded]] environment, a pool may block the client until another thread returns an object to the pool.