Class DivideAndConquer.Divider
java.lang.Object
org.ojalgo.concurrent.DivideAndConquer.Divider
- Enclosing class:
DivideAndConquer
A configurable divider that can be used to divide a range of indices and conquer each part in parallel.
You can configure the divider with a maximum parallelism level and a threshold for the size of the
parts to conquer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddivide(int first, int limit, DivideAndConquer.Conquerer conquerer) voiddivide(int limit, DivideAndConquer.Conquerer conquerer) parallelism(IntSupplier parallelism) threshold(int threshold)
-
Field Details
-
myExecutor
-
myParallelism
-
myThreshold
private int myThreshold
-
-
Constructor Details
-
Divider
Divider(ExecutorService executor)
-
-
Method Details
-
divide
-
divide
-
parallelism
-
threshold
-