Example: ThreadRace.java
// ThreadRace.java Steve Tanimoto
public class ThreadRace {
public static void main( String [] args) {
CountingThread aCounter = new CountingThread("a");
CountingThread bCounter = new CountingThread("b");
aCounter.start();
bCounter.start();
}
}
Previous slide
Next slide
Back to first slide
View graphic version