ThreadPoolExecutor线程池

重要参数:

    private final BlockingQueue workQueue;

    private final ReentrantLock mainLock = new ReentrantLock();

    private final HashSet workers = new HashSet();



执行流程



提交任务


执行任务


生命周期

你可能感兴趣的:(ThreadPoolExecutor线程池)