|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.decisiontree2.learner.ParallelProcessing
public class ParallelProcessing
Holds information for the parallel processing and is also used for synchronization stuff.
Constructor Summary | |
---|---|
ParallelProcessing(int numberThreads)
Constructor. |
Method Summary | |
---|---|
void |
decrementNumThreads()
Decrements the current number of threads in use by 1. |
int |
getCurrentThreadsInUse()
Returns the number of threads currently in use. |
int |
getMaxNumberThreads()
|
void |
incrementNumThreads()
Increments the current number of threads in use by 1. |
boolean |
isThreadAvailable()
Method invoked to manage available thread capacity. |
void |
isThreadAvailableBlocking()
Method invoked to manage available thread capacity. |
void |
reset()
Sets the number of current threads to 1. |
void |
setNumberThreads(int numberThreads)
Sets the number of parallel threads to use. |
void |
threadTaskFinished()
Once a thread which synchronizes on this object has finished, it must invoke this method to allow other threads to continue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParallelProcessing(int numberThreads)
numberThreads
- the number of threads to use at most in parallelMethod Detail |
---|
public void setNumberThreads(int numberThreads)
numberThreads
- the number of threads to use in parallelpublic int getCurrentThreadsInUse()
public void incrementNumThreads()
public void decrementNumThreads()
public void isThreadAvailableBlocking()
public boolean isThreadAvailable()
public void threadTaskFinished()
public int getMaxNumberThreads()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |