摘要: 创建线程池的方式,以及各自的特点 1.使用ThreadPoolExecutor类创建线程池。 ThreadPoolExecutor(int corePoolSize, // 线程池的核心线程数 int maximumPoolSize, // 线程池的最大线程数 long keepAliveTime, 阅读全文
posted @ 2020-05-03 10:12 时光编辑师 阅读(209) 评论(0) 推荐(0)