摘要: 使用Executors创建线程池的四种方法: Executors类,提供了一系列工厂方法用于创建线程池,返回的线程池都实现了ExecutorService接口。 1.public static ExecutorService newFixedThreadPool(int nThreads) 创建固定 阅读全文
posted @ 2020-02-15 22:31 惊叫唤 阅读(761) 评论(0) 推荐(0) 编辑