Documentation of 'edu.jas.kern.ComputerThreads' Java class
ComputerThreads
edu.jas.kern

Class ComputerThreads



  • public class ComputerThreads
    extends java.lang.Object
    ComputerThreads, provides global thread / executor service.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int N_CPUS
      Number of processors.
      static int N_THREADS 
      static boolean NO_THREADS
      Flag for thread usage.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.util.concurrent.ExecutorService getPool()
      Get the thread pool.
      static boolean isRunning()
      Test if a pool is running.
      static void setNoThreads()
      Set no thread usage.
      static void setThreads()
      Set thread usage.
      static void terminate()
      Stop execution.
      • Methods inherited from class java.lang.Object

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

      • N_CPUS

        public static final int N_CPUS
        Number of processors.
      • N_THREADS

        public static final int N_THREADS
    • Method Detail

      • isRunning

        public static boolean isRunning()
        Test if a pool is running.
        Returns:
        true if a thread pool has been started or is running, else false.
      • getPool

        public static java.util.concurrent.ExecutorService getPool()
        Get the thread pool.
        Returns:
        pool ExecutorService.
      • terminate

        public static void terminate()
        Stop execution.
      • setNoThreads

        public static void setNoThreads()
        Set no thread usage.
      • setThreads

        public static void setThreads()
        Set thread usage.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.