线程池: 等待线程池内所有线程执行完毕后再继续任务 boolean loop = true; do{ loop=!executorService.awaitTermination(2, TimeUnit.SECONDS); }while(loop);