摘要: 常用线程池 Executors提供四种线程池: 1.newCachedThreadPool :缓存线程池,如果线程池长度超过处理需要,可回收空闲线程,若无可回收,则新建线程。 2.newFixedThreadPool : 定长线程池,可控制线程最大并发数,超出的线程会在队列中等待。 3.newSch 阅读全文
posted @ 2023-11-22 23:21 轻寒 阅读(5) 评论(0) 推荐(0) 编辑