Package net.preibisch.mvrecon
Class Threads
java.lang.Object
net.preibisch.mvrecon.Threads
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorServicestatic ExecutorServicecreateFixedExecutorService(int nThreads) static ExecutorServicestatic ExecutorServicecreateFlexibleExecutorService(int nThreads) static voidstatic intsplitTasks(List<Callable<T>> tasks, int batchSize)
-
Constructor Details
-
Threads
public Threads()
-
-
Method Details
-
numThreads
public static int numThreads()- Returns:
- num threads for the executorService, we need at least 4 because we have hierarchical multithreading that would stall otherwise (e.g. Stitching -- FFTConvolution)
-
createFlexibleExecutorService
-
createFlexibleExecutorService
-
createFixedExecutorService
-
createFixedExecutorService
-
splitTasks
-
main
-