Top "Pool" questions

A pool describes a cache of resources that an application can draw from to save instantiation time.

Tips for using commons-pool in production

Based on an answer I got here, I started to give commons-pool a serious look. My last experience of using …

java sockets pool
Python: How to use Value and Array in Multiprocessing pool

For multiprocessing with Process, I can use Value, Array by setting args param. With multiprocessing with Pool, how can I …

python arrays multiprocessing pool
C++ object-pool that provides items as smart-pointers that are returned to pool upon deletion

I'm having fun with c++-ideas, and got a little stuck with this problem. I would like a LIFO class …

c++ c++11 smart-pointers pool
What is the difference between maxTotal and maxIdle in Apache Commons Pool 2?

I'm using the Apache Commons Pool 2 implementation to have object pool mechanism for my application. As of now, I have …

java apache apache-commons pool
Can't pickle <type 'instancemethod'> using python's multiprocessing Pool.apply_async()

I want to run something like this: from multiprocessing import Pool import time import random class Controler(object): def __init__(…

python multiprocessing pool
Using python multiprocessing Pool in the terminal and in code modules for Django or Flask

When using multiprocessing.Pool in python with the following code, there is some bizarre behavior. from multiprocessing import Pool p = …

python django flask multiprocessing pool
Do multiprocessing pools give every process the same number of tasks, or are they assigned as available?

When you map an iterable to a multiprocessing.Pool are the iterations divided into a queue for each process in …

python multiprocessing pool
Good Client Socket Pool

I need to manage long running TCP socket connections to an external server from my Java application. I'm looking for …

java sockets pool
Node.js and MongoDB, reusing the DB object

I'm new to both Node.js and MongoDB, but I've managed to put some parts together from SO and the …

node.js mongodb object reusability pool
Worker, Threads & Pool size using Puma

If I have a server with 1 core, how many puma workers, threads and what database pool size is appropriate? What's …

ruby pool worker puma