ThreadPoolExecutor源碼解析

 創建線程池最終都會調用下面這個方法 對上面參數做一下簡單講解 corePoolSize 線程池中核心線程數 maximumPoolSize 線程池中最大線程數 keepAliveTime 線程池中空閒線程存活時間 TimeUnit    keepAliveTime的單位 workQueue 阻塞隊列BlockingQueue 實例 threadFactory 線程工廠, 用於創建線程 handl
相關文章
相關標籤/搜索