jist.minisim
Class unthreaded

java.lang.Object
  extended by jist.minisim.unthreaded
All Implemented Interfaces:
JistAPI.Entity, JistAPI.Timeless

public class unthreaded
extends java.lang.Object
implements JistAPI.Entity

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.

Since:
JIST1.0
Version:
$Id: unthreaded.java,v 1.1 2005/03/03 13:05:39 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

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

unthreaded

public unthreaded()
Method Detail

process

public void process(int id)
'Thread' processing.


main

public static void main(java.lang.String[] args)
Program entry point: show difference between Java and JiST execution models.

Parameters:
args - command-line parameters