摘要: 手动创建线程池 在使用Executors创建线程时,阿里巴巴规范提出了手动创建线程池,效果会更好哦。 使用ThreadPoolExecutor方式创建线程池,可以规避资源耗尽风险(OOM) ThreadPoolExecutor的构造函数 public ThreadPoolExecutor(int c 阅读全文
posted @ 2021-12-04 13:04 HeiDaotu 阅读(1443) 评论(0) 推荐(0) 编辑