Class Threads

java.lang.Object
net.preibisch.mvrecon.Threads

public class Threads extends Object
  • 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

      public static ExecutorService createFlexibleExecutorService(int nThreads)
    • createFlexibleExecutorService

      public static ExecutorService createFlexibleExecutorService()
    • createFixedExecutorService

      public static ExecutorService createFixedExecutorService(int nThreads)
    • createFixedExecutorService

      public static ExecutorService createFixedExecutorService()
    • splitTasks

      public static <T> List<ArrayList<Callable<T>>> splitTasks(List<Callable<T>> tasks, int batchSize)
    • main

      public static void main(String[] args)