Determines whether a computation is expected to take long enough to benefit from parallel processing. If the estimated computation time is below the specified threshold, a single processor is returned. Otherwise, the requested number of processors is returned.
use_parallel(tm, nparam, B, maxProcessor, threshold = 20)An integer giving the number of processors to use.
Estimated time, in seconds, for one computation.
Number of parameter values to be processed.
Number of simulation runs.
Maximum number of processors requested.
Minimum estimated computation time, in seconds, for parallel processing to be used. The default is 20.