I am trying to understand the essence of determining the size of the kernel and the maximum pool for Java 5 ThreadPoolExecutor. I understand that the number of threads increases only after the queue is full, which seems a bit late (at least with large queues).
Is it not that I am happy to allocate more threads for tasks, in which case I can simply increase the size of the kernel pool; or I really donโt want to do this, and in this case I should have a big queue? What is the scenario in which the individual kernel sizes and maximum pool are useful?
source
share