Class ParallelRunner

java.lang.Object
org.apfloat.internal.ParallelRunner

public class ParallelRunner extends Object
Class for running ParallelRunnable objects in parallel using multiple threads.

The ParallelRunner assumes that the current ApfloatContext returns an ExecutorService that is limited to a number of threads that is one less than the number of processors. This way, when also the current thread runs batches from the ParallelRunnable, CPU utilization should be maximized but only so that no more threads are actively executing than the number of processors.

Since:
1.1
Version:
1.14.0
Author:
Mikko Tommila