When you say βat a timeβ when it comes to concurrency, this is Confusing. If you use an ExecuterService with a thread pool size of 10, 10 out of 100 threads will be included for execution. But remember, if you have only one processor, and one of your threads has a higher priority, all other threads can remain in a waiting state. My suggestion is to configure the number of threads based on the number of CPUs available.
source
share