|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.sandStorm.internal.TPPThreadManager
class TPPThreadManager
TPPThreadManager is a thread manager implementation which provides one thread per CPU.
Nested Class Summary | |
---|---|
(package private) class |
TPPThreadManager.appThread
Internal class representing a single TPPTM-managed thread. |
Field Summary | |
---|---|
private static boolean |
DEBUG
|
private static boolean |
DEBUG_VERBOSE
|
private int |
max_threads
|
private int |
num_cpus
|
private java.util.Vector |
stages
|
private java.lang.ThreadGroup |
tg
|
private java.util.Vector |
threads
|
Constructor Summary | |
---|---|
TPPThreadManager(SandstormConfig config)
Create an TPPThreadManager which attempts to schedule stages on num_cpus CPUs, and caps its thread usage to max_threads. |
Method Summary | |
---|---|
void |
deregister(StageWrapperIF stage)
Deregister a stage with this thread manager. |
void |
deregisterAll()
Deregister all stage with this thread manager. |
void |
register(StageWrapperIF stage)
Register a stage with this thread manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean DEBUG
private static final boolean DEBUG_VERBOSE
private int num_cpus
private int max_threads
private java.util.Vector stages
private java.util.Vector threads
private java.lang.ThreadGroup tg
Constructor Detail |
---|
TPPThreadManager(SandstormConfig config)
Method Detail |
---|
public void register(StageWrapperIF stage)
register
in interface ThreadManagerIF
public void deregister(StageWrapperIF stage)
deregister
in interface ThreadManagerIF
public void deregisterAll()
deregisterAll
in interface ThreadManagerIF
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |