FileDocCategorySizeDatePackage
RaceDemo2.javaAPI DocExample408Tue Dec 12 18:57:46 GMT 2000None

RaceDemo2

public class RaceDemo2 extends Object

Fields Summary
private static final int
NUMRUNNERS
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


         
        PoliteRunner[] runners = new PoliteRunner[NUMRUNNERS];

        for (int i = 0; i < NUMRUNNERS; i++) {
            runners[i] = new PoliteRunner(i);
            runners[i].setPriority(2);
        }
        for (int i = 0; i < NUMRUNNERS; i++)
            runners[i].start();