重要参数:
private final BlockingQueue<Runnable> workQueue;
private final ReentrantLock mainLock = new ReentrantLock();
private final HashSet<Worker> workers = new HashSet<Worker>();
执行流程
提交任务
执行任务
生命周期
重要参数:
private final BlockingQueue<Runnable> workQueue;
private final ReentrantLock mainLock = new ReentrantLock();
private final HashSet<Worker> workers = new HashSet<Worker>();
执行流程
提交任务
执行任务
生命周期
本文标题:ThreadPoolExecutor线程池
本文链接:https://www.haomeiwen.com/subject/pfwzsltx.html
网友评论