5354555657585960616263
} /* * Call the shutdown method */ myExecutor.shutdown(); /* * Get the results of the execution of the last five tasks */ for (int i=5; i<10; i++){
6465666768697071727374
TimeUnit.SECONDS.sleep(10); /* * Shutdown the executor */ executor.shutdown(); /* * Wait for the finalization of the executor */ executor.awaitTermination(1, TimeUnit.DAYS);