摘要: 通常我们创建线程池有两种方式,一是通过ThreadPoolExecutor构造函数实现(推荐);二是通过Executor框架的工具类Executors来自行创建。本文主要分析ThreadPoolExecutor的执行原理,包括线程的创建、执行、销毁。在进行详细分析之前,先介绍一下ThreadPool 阅读全文
posted @ 2022-06-14 14:51 学海无涯# 阅读(137) 评论(0) 推荐(0)