I have a simple question on using the fork join thread pool. Here is a short example of what I'm using:
executor = "fork-join-executor"
# Configuration for the fork join pool
fork-join-executor {
# Min number of threads to cap factor-based parallelism number to
parallelism-min = 24
# Parallelism (threads) ... ceil(available processors * factor)
parallelism-factor = 4.0
# Max number of threads to cap factor-based parallelism number to
parallelism-max = 48
}
What I'm not sure is that, how many threads will be created in this case? I'm running on a 2 core machine, so it is 24 threads per core with a max of 48 threads?
With the parallelism factor set to 4.0, the number of threads that can be run in parallel is going to be 8. So what is the need for setting the min and max values which is my case is 24 and 48?