Class DeepNettsThreadPool

java.lang.Object
deepnetts.util.DeepNettsThreadPool

public class DeepNettsThreadPool extends Object
Dedicated thread pool for Deep Netts Engine.
  • Constructor Details

    • DeepNettsThreadPool

      public DeepNettsThreadPool()
    • DeepNettsThreadPool

      public DeepNettsThreadPool(int threadNum)
  • Method Details

    • run

      public void run(Collection<Callable<Void>> tasks) throws InterruptedException
      Throws:
      InterruptedException
    • submit

      public Future<?> submit(Callable<?> task)
      Submit a single task to thread pool.
      Parameters:
      task -
      Returns:
    • run

      public void run(Runnable task)
    • shutdown

      public void shutdown()
    • shutdownNow

      public void shutdownNow()
    • getThreadNum

      public final int getThreadNum()
    • setThreadNum

      public void setThreadNum(int threadNum)
    • getMaxThreadsNum

      public static int getMaxThreadsNum()
    • calculateCellsPerThread

      public static int[] calculateCellsPerThread(int width, int threadNum)
    • getExecutorService

      public ExecutorService getExecutorService()