Questions tagged [pool]

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

Pools typically refer to database connections but the term can be applied to graphics handles, files and other run-time processes. When the use of such a resource is complete but the application is still running, it will typically return the resource to the pool rather than release it.

1504 questions
0
votes
1 answer

In control4 how can I use of Pool Proxy

Could anyone please guide in regards with the pool proxy development process. As the provided documentation (Proxy and Protocol guide) explains only about proxy classes but needing few more help and the directions to develop the pool proxy. Is there…
hemant
  • 155
  • 1
  • 10
0
votes
1 answer

Python multiprocessing.Pool is weird on Windows

I have a super simple python script as defined here import multiprocessing from multiprocessing import Pool print "CPUs: " + str(multiprocessing.cpu_count()) convertPool = Pool(multiprocessing.cpu_count()) On Linux this appears to behave as I…
Jon
  • 3,985
  • 7
  • 48
  • 80
0
votes
2 answers

Pooling memory in C - Memory Management

I am writing a cross platform shared library in C. The workflow of this library would be like, lib *handle = lib_init(); result = lib_do_work(handle); lib_destroy(handle); Usually, users will init it once their application starts and closes it when…
Navaneeth K N
  • 15,295
  • 38
  • 126
  • 184
0
votes
2 answers

web site file write performance problem

WE use a third party report tool. Report tool uses active-x. At first we generate and run a query accırding to filters, then one report file is created which inculdes the data (result of the query). Then client downloads the report file. But file…
omer
0
votes
2 answers

how to know is application pool memory enough?

I'm thinkin to use shared hosting which have application pool of 200MB. Before I buy this service I need to know how much memory my app actually consuming. And what happens when that application pool size iz reached. With having nhibernate mvc3…
panjo
  • 3,467
  • 11
  • 48
  • 82
0
votes
1 answer

How to initialise,load properties and dispose my own connection pool using spring?

I have own connection pool: public final class ConnectionPool { private static final Logger log = Logger.getLogger(ConnectionPool.class); private static final int DEFAULT_POOL_SIZE = 10; //single instance private static ConnectionPool…
And
  • 343
  • 1
  • 5
  • 15
0
votes
1 answer

Commons Pooling: Generic- vs StackObjectPool

The documentation for commons-pooling-1.6 defines GenericObjectPool as: GenericObjectPool provides robust pooling functionality for arbitrary objects. Furthermore, the Javadocs show a large number of fields that can be used to configure this…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
0 answers

how can i use thread pool lib via boost?

I copied the boost hpp files under /usr/include/boost, the release version is 1.37.0 , and i also copied the threadpool hpp files under /usr/include/boost. When running gcc quickstart.cpp -o test the compilation fails with the following…
0
votes
1 answer

Can I increase the timeout for apache pool to reduce creation of new objects?

I'm trying to pool some objects and share them but I noticed blocking in the threads. I'm a bit new to Java so not sure if this is a problem with my lack of experience or something specific to pools. Here's some code that replicates the…
Lostsoul
  • 25,013
  • 48
  • 144
  • 239
0
votes
1 answer

How to create managers for the worker threads?

The code works fine for a single "manager", which basically launches some HTTP GETs to a server. But I've hit a brick wall. How do I create 2 managers now, each with its own Download_Dashlet_Job object and tcp_pool_object? In essence, the…
TedBurrows
  • 5,401
  • 4
  • 16
  • 10
0
votes
1 answer

process can not stop in python multiprocessing pool

I have a program using python multiprocessing. I find that all the process created in the main programs can be finished but the main programs is always waiting for the return values and can not stop. Can anybody give me some suggestions on how to…
hanqiang
  • 567
  • 1
  • 7
  • 17
-1
votes
1 answer

Why does the use of multiprocessing.Pool result in an IndexError?

I am trying to learn Python multiprocessing.Pool. import numpy as np from multiprocessing import Pool def topla(sayı): return sayı+2 def summ(number): results=[] array=np.linspace(0,number,20) if __name__ == "__main__": …
-1
votes
1 answer

Call multiple functions using loop in Python

In my code there are a number of functions called func1, func2, func3, and so on... I'm using multiprocessing pool to call the functions and make them run parallel. The code looks like this: def func1(): ... def func2(): ... if __name__ ==…
Nic
  • 1
-1
votes
2 answers

Threadpool for image downloading

How can i download 1000+ images quicker using thread pool? as it’s taking far too long to download these 1000+ images witt my current script current script import request image_url = [ “http://image_eg_001”, “http://image_eg_002”, …
Vincent
  • 1
  • 1
-1
votes
1 answer

How to speed up this search script?

IHello, I have created a python script which aims to complete an excel file (wb) thanks to the first column of this file composed of many references (about 4000). To complete this excel, my script must search each reference (so use a for loop of…