|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.util.ThreadPool
A ThreadPool is an object that manages a set threads that are used to process a queue of Runnables.
Constructor Summary | |
ThreadPool()
Constructrs a ThreadPool object with 1 for the low and high watermark. |
|
ThreadPool(int hi)
Constructs a ThreadPool object with the same low and high watermark. |
|
ThreadPool(int lo,
int hi)
Constructs a ThreadPool object with a low and high watermark. |
Method Summary | |
void |
run()
This method removes and runs the first Runnable object in the queue, if there are enough to run. |
void |
run(java.lang.Runnable r)
This method adds a Runnable object to the queue of Runnables which is being served by the threadpool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadPool(int lo, int hi)
public ThreadPool(int hi)
public ThreadPool()
Method Detail |
public void run(java.lang.Runnable r)
public void run()
run
in interface java.lang.Runnable
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.