|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.minisim.unthreaded
public class unthreaded
An example to show why you don't always need threads in an event-oriented environment. Run this code under both java and jist to see how jist provides simulation time 'parallelism' without threads.
| Constructor Summary | |
|---|---|
unthreaded()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Program entry point: show difference between Java and JiST execution models. |
void |
process(int id)
'Thread' processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public unthreaded()
| Method Detail |
|---|
public void process(int id)
public static void main(java.lang.String[] args)
args - command-line parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||