|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.kern.ComputerThreads
public class ComputerThreads
ComputerThreads, provides global thread / executor service.
ComputerThreads.getPool()
. Once a pool has been created
it must be shutdown to exit JAS with
ComputerThreads.terminate()
.Field Summary | |
---|---|
static int |
N_CPUS
Number of processors. |
static int |
N_THREADS
|
static boolean |
NO_THREADS
Flag for thread usage. |
Method Summary | |
---|---|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean NO_THREADS
GCDFactory.getProxy(edu.jas.structure.RingFactory)
public static final int N_CPUS
public static final int N_THREADS
Method Detail |
---|
public static boolean isRunning()
public static java.util.concurrent.ExecutorService getPool()
public static void terminate()
public static void setNoThreads()
public static void setThreads()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |