Java并发--ThreadPoolExecutor详解

ThreadPoolExecutor详解 Executor框架最核心的类是ThreadPoolExecutor,它是线程池的实现类,主要由下列4个组件构成。web corePool:核心线程池的大小。 maximumPool:最大线程池的大小。 BlockingQueue:用来暂时保存任务的工做队列。 RejectedExecutionHandler:当ThreadPoolExecutor已经关闭
相关文章
相关标签/搜索