Top "Threadpool" questions

Pooling resources in given limits and automatically assign task to open workers.

How many threads is too many?

I am writing a server, and I send each action of into a separate thread when the request is received. …

multithreading performance threadpool
Thread pooling in C++11

Relevant questions: About C++11: C++11: std::thread pooled? Will async(launch::async) in C++11 make thread pools obsolete for avoiding …

c++ multithreading c++11 threadpool stdthread
ExecutorService, how to wait for all tasks to finish

What is the simplest way to to wait for all tasks of ExecutorService to finish? My task is primarily computational, …

java multithreading threadpool executorservice
How to get thread id from a thread pool?

I have a fixed thread pool that I submit tasks to (limited to 5 threads). How can I find out which …

java multithreading threadpool executorservice executors
If my interface must return Task what is the best way to have a no-operation implementation?

In the code below, due to the interface, the class LazyBar must return a task from its method (and for …

c# .net task-parallel-library async-await threadpool
Naming threads and thread-pools of ExecutorService

Let's say I have an application that utilizes the Executor framework as such Executors.newSingleThreadExecutor().submit(new Runnable(){ @Override public …

java threadpool runnable executorservice managedthreadfactory
How to increase number of threads in tomcat thread pool?

i just want to know How to increase number of threads in tomcat thread pool ? and what number to set …

tomcat7 threadpool
How can I shutdown Spring task executor/scheduler pools before all other beans in the web app are destroyed?

In a Spring web application I have several DAO and service layer beans. One service layer bean has annotated @Async / @…

java spring threadpool
multiprocessing.Pool - PicklingError: Can't pickle <type 'thread.lock'>: attribute lookup thread.lock failed

multiprocessing.Pool is driving me crazy... I want to upgrade many packages, and for every one of them I have …

python threadpool multiprocessing pickle
What is the difference between ExecutorService.submit and ExecutorService.execute in this code in Java?

I am learning to use ExectorService to pool threads and send out tasks. I have a simple program below import …

java multithreading threadpool executorservice