top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is thread pool ?

+2 votes
248 views
What is thread pool ?
posted Sep 12, 2013 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
  1. Thread pools are a collection of a certain number of threads that are created and destroyed dynamically as per the load on the server. The thread pool boasts of a minimum number of threads that are active at all times.
  2. When the load on the server increases beyond a certain point new threads are instantiated and added to the pool. Any incoming requests are served by threads in the pool that are idle.
  3. Advantage : It minimizes the overhead incurred by the server to instantiate new threads and terminating threads when they have serviced a request.
  4. Disadvantage : Threads themselves require resources such as memory. If the thread pool size is too large the thread pool puts a load on the machine’s resources.
answer Sep 13, 2013 by Satyabrata Mahapatra
...