Quick Refresh : Multi-threading : How to decide pool size for Thread Pools?
How to decide pool size for Thread Pools? Thread pool is really an important topic to understand if you are developing an application, which is designed with multi-threading approaches. Thread pool is a pool of live worker threads. A worker thread is a thread that accepts a task, completes it, and comes back to the thread pool to accept another task. In such a way the application can use already exist threads multiple times instead of creating new threads every time. By using a thread pool in your application, you can boost its performance and utilize resources efficiently. But in this article, we are not talking about how to create a thread pool and how does thread pool works . Here we will discuss how to decide pool size for thread pool? I mean, on which factors we could decide that how many threads, we should create in our thread pool for better time and resource utilization. Most of the time people don’t think about pool size for their thread pool and they create a...