1、手动创建线程池:
java.util.concurrent.ThreadPoolExecutor executor = new ThreadPoolExcutor(1,1,1,TimeUnit.SECONDS,new LinkedBlockingQueue<>(1));
1、手动创建线程池:
java.util.concurrent.ThreadPoolExecutor executor = new ThreadPoolExcutor(1,1,1,TimeUnit.SECONDS,new LinkedBlockingQueue<>(1));