I initially used future
to generate the parallelism, but that creates huge numbers of threads if the population size is large. So I switched to agent
, which uses a thread pool, thereby keeping the total number of threads under control.
I initially used future
to generate the parallelism, but that creates huge numbers of threads if the population size is large. So I switched to agent
, which uses a thread pool, thereby keeping the total number of threads under control.