Top "Threadpool" questions

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

Java ExecutorService callback on thread terminate

I am using cached thread pool ExecutorService to run some asynchronous background tasks. I've provided my ThreadFactory that hands out …

java multithreading threadpool executorservice
Why does ScheduledThreadPoolExecutor only accept a fixed number of threads?

I may imagine some tasks scheduled to take a very long time and ScheduledThreadPoolExecutor would create additional threads for the …

java threadpool
TaskFactory.StartNew versus ThreadPool.QueueUserWorkItem

Apparently the TaskFactory.StartNew method in .NET 4.0 is intended as a replacement for ThreadPool.QueueUserWorkItem (according to this post, anyway). …

.net performance task threadpool taskfactory
Java Callback Execution in Thread Executed After run()

I'm using a job queue library, where you define Jobs and post them to a JobManager. The JobManager has a …

java multithreading asynchronous threadpool job-queue
Why does Windows 10 start extra threads in my program?

With Visual Studio 2015, in a new, empty C++ project, build the following for Console application: int main() { return 0; } Set a …

c++ windows multithreading threadpool
Java Cached thread pool and thread local

I have a question about java and concurrency. Let say I have a ThreadLocal variable called 'a'. And I use …

java multithreading concurrency threadpool thread-local
How to debug a rare deadlock?

I'm trying to debug a custom thread pool implementation that has rarely deadlocks. So I cannot use a debugger like …

c++ multithreading c++11 threadpool deadlock
ASP.NET HttpContext.Current inside Task.Run

I have a following code example that is used in ASP.NET MVC application. The purpose of this code is …

asp.net asp.net-mvc asynchronous threadpool httpcontext
Socket Io With Android Service

Good day. I have a very specific issue considering the Socket IO library for android and it's service. Important to …

android sockets service threadpool background-task
How Does a Cached Thread Pool Reuse Existing Threads

I've just started looking at Java's Executors class and the newCachedThreadPool( ) method. According to the API, the resulting thread pool …

java multithreading threadpool