Setting Ideal size of Thread Pool [duplicate]
问题 This question already has an answer here : Performance Issues with newFixedThreadPool vs newSingleThreadExecutor (1 answer) Closed 6 years ago . What is the difference between- newSingleThreadExecutor vs newFixedThreadPool(20) in terms of Operating System and Programming point of view. Whenever I am running my program using newSingleThreadExecutor my program works very well and end to end latency(95th percentile) comes around 5ms . But as soon as I start running my program using-