MultiRun nrf = new MultiRun("first thread");
MultiRun nrs = new MultiRun("second thread");
MultiRun nrt = new MultiRun("third thread");
try
{
Thread.sleep(10000); //put main thread to sleep yeild the CPU
}
catch(InterruptedException e)
{
System.out.println("Main thread interrupted.");
}
System.out.println("Main thread exiting.");