FileDocCategorySizeDatePackage
ThreadStoppers.javaAPI DocExample2711Sun Feb 08 21:34:08 GMT 2004None

ThreadStoppers

public class ThreadStoppers extends Object
Demonstrate both StopXXX classes.

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

		Thread t1 = new StopBoolean();
		Thread t2 = new StopClose();
		t1.start();
		t2.start();
		Thread.sleep(1000*5);
		((StopBoolean)t1).shutDown();
		((StopClose  )t2).shutDown();