private static ThreadPoolExecutor executor = new ThreadPoolExecutor(8,16,20, TimeUnit.SECONDS,new LinkedBlockingDeque<>(20), Executors.defaultThreadFactory(), (r, executor1) -> new Thread(r).start());
System.out.println("Main 线程名称: "+Thread.currentThread().getName());
CompletableFuture.runAsync(()-> System.out.println(Thread.currentThread().getName()+" CSDN——Mutou_ren CompletableFuture.runAsync"),executor);
CompletableFuture<String> future1 = CompletableFuture.supplyAsync(()-> (Thread.currentThread().getName()+" CSDN——Mutou_ren CompletableFuture.supplyAsync"));
System.out.println(Thread.currentThread().getName()+" "+future1.get());
thenRun
CompletableFuture.supplyAsync(()->{
System.out.println("thenRun前置准备睡眠");
try {
Thread.sleep(