1. 程式人生 > >Java 自定義線程池

Java 自定義線程池

dfa and hand blank epo cte 方法的參數 factor handler

Java 自定義線程池 https://www.cnblogs.com/yaoxiaowen/p/6576898.html

public ThreadPoolExecutor(int corePoolSize,
                              int maximumPoolSize,
                              long keepAliveTime,
                              TimeUnit unit,
                              BlockingQueue<Runnable> workQueue,
                              ThreadFactory threadFactory,
                              RejectedExecutionHandler handler)
重點是對該構造方法的參數的理解

Java 自定義線程池