This question is about thread pools in Java and can be very generic.
The Executors class provide with two classes of thread pools which can be configurable through ThreadPoolExecutor class: ScheduledThreadPool and FixedThreadPool.
ThreadPoolExecutor allows you to set the number of core threads and the max size of the thread pool.
So my question is how to choose these values -maybe related to number of processors or threads expected to be submited- in order to get maximum performance and/or fastest execution time.
Thank you in advance,
Enrique