FileDocCategorySizeDatePackage
SelfishRunner.javaAPI DocExample366Tue Dec 12 18:57:48 GMT 2000None

SelfishRunner

public class SelfishRunner extends Thread

Fields Summary
private int
tick
private int
num
Constructors Summary
public SelfishRunner(int num)


       
        this.num = num;
    
Methods Summary
public voidrun()

        while (tick < 400000) {
            tick++;
            if ((tick % 50000) == 0)
                System.out.println("Thread #" + num + ", tick = " + tick);
        }