摘要: JUC的线程池架构 1.Executor Executor是Java异步任务的执行者接口,目标是执行目标任务。Executor作为执行者角色,目的是提供一种将“任务提交者”与“任务执行者”分离的机制。它只有一个函数式方法: public interface Executor { void execu 阅读全文
posted @ 2021-10-17 19:10 csgopher 阅读(345) 评论(0) 推荐(0)