|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.syncbuilder.util.TimeSlicer
This class simulates time-sliced multi-threading on a system that can only provide round-robin green threads.
| Constructor Summary | |
TimeSlicer(int base_priority)
|
|
| Method Summary | |
void |
addThread(java.lang.Thread thread)
|
void |
run()
The core of the scheduler. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TimeSlicer(int base_priority)
| Method Detail |
public void run()
public void start()
public void stop()
public void addThread(java.lang.Thread thread)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||