org.ojalgo.concurrent
Class ConcurrentStrategy
java.lang.Object
org.ojalgo.concurrent.ConcurrentStrategy
public abstract class ConcurrentStrategy
- extends Object
BASIC
public static final ConcurrentStrategy BASIC
- The default strategy. Will check if the "count" is larger than
the "threshold" and if there are workers available.
DEEP
public static final ConcurrentStrategy DEEP
- Will use the basic strategy to determine if it should start
branching. If it does start it will make use of all workers.
ONCE
public static final ConcurrentStrategy ONCE
- Will use the basic strategy to determine if it should start
branching, but it will never branch more than once.
ConcurrentStrategy
public ConcurrentStrategy()
shouldBranch
public boolean shouldBranch(int aCount,
int aThreshold,
IntCount availableWorkers)