Object pool pattern: Difference between revisions

Content deleted Content added
ArthurBot (talk | contribs)
m robot Adding: cs:Object pool
Line 31:
 
Java supports thread pooling via java.util.concurrent.ExecutorService and other related classes. The executor service has a certain number of "basic" threads that are never discarded. If all threads are busy, the service allocates the allowed number of extra threads that are later discarded if not used for the certain expiration time. If no more threads are allowed, the tasks can be placed in the queue. Finally, if this queue may get too long, it can be configured to suspend the requesting thread.
 
== See also ==
* [[Connection pool]]
 
==References==