|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.jinsect.threading.ThreadQueue
gr.demokritos.iit.jinsect.threading.ThreadList
public class ThreadList
A list of threads for parallel execution.
Should probably be replaced by ThreadPoolExecutor
.
Field Summary |
---|
Fields inherited from class gr.demokritos.iit.jinsect.threading.ThreadQueue |
---|
Max, qThreads |
Constructor Summary | |
---|---|
ThreadList()
Initializes a thread list, with the default maximum number of threads running at the same time. |
|
ThreadList(int iMaxThreads)
Initializes a thread list, with a given maximum of threads running at the same time. |
Method Summary | |
---|---|
boolean |
addThreadFor(java.lang.Runnable r)
Adds a Runnable object in the list for execution, if possible. |
Methods inherited from class gr.demokritos.iit.jinsect.threading.ThreadQueue |
---|
waitUntilCompletion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadList(int iMaxThreads)
iMaxThreads
- The maximum number of threads running at the same time.public ThreadList()
Method Detail |
---|
public boolean addThreadFor(java.lang.Runnable r)
Runnable
object in the list for execution, if possible. There is no first-in,
first-out logic, as opposed to ThreadQueue
.
addThreadFor
in class ThreadQueue
r
- The runnable object to execute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |