...
Thread Pools overcome these disadvantages as the maximum number of worker threads that can be initiated and executed simultaneously, can be controlled. Every worker accepts a Runnable
from a request and stores it in a temporary Channel
like a buffer or a queue until resources become available. Since threads are reused and can be efficiently added efficiently to the Channel
, most of the thread creation overhead is eliminated.
...