StopBoolean t1 = new StopBoolean(); t1.start(); Thread.sleep(1000*5); t1.shutDown();
while (!done) { System.out.println("StopBoolean running"); try { sleep(720); } catch (InterruptedException ex) { // nothing to do } } System.out.println("StopBoolean finished.");
done = true;