Class ThreadUtil


  • public class ThreadUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.concurrent.Executor mipavThreadPool  
      static int nthreads  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getAvailableCores()
      Return the available processors in your machine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nthreads

        public static final int nthreads
      • mipavThreadPool

        public static java.util.concurrent.Executor mipavThreadPool
    • Constructor Detail

      • ThreadUtil

        public ThreadUtil()
    • Method Detail

      • getAvailableCores

        public static int getAvailableCores()
        Return the available processors in your machine. TODO: Add a similar method for GPUs once such a method exists in Java