判断线程结束
判断线程结束
-
使用ExecutorService.isTerminated方式
public void executor() throws InterruptedException{
ExecutorService executorService = Executors.newFixedThreadPool(threadNum);
List<Callable
使用ExecutorService.isTerminated方式
public void executor() throws InterruptedException{
ExecutorService executorService = Executors.newFixedThreadPool(threadNum);
List<Callable