摘要: Java 创建线程池的方式 Java 创建线程池主要有两种方法,一种是通过 Executors 工厂类提供的方法,该类提供了4种不同的线程池;另一种是通过 ThreadPoolExecutor类进行自定义创建。 1、通过 Executors 工厂类提供的方法 1.1、newCachedThreadP 阅读全文
posted @ 2021-10-12 16:37 MyDistance 阅读(2244) 评论(0) 推荐(0) 编辑