CachedThreadPool與FixedThreadPool

1.一個線程實例加入CachedThreadPool時,若是該線程實例不存在CachedThreadPool,則建立一個,CachedThreadPool中線程實例默認超時時間爲60s,超過這個時間,線程實例中止並被移出CachedThreadPool,適用於生存期短、異步的線程任務。併發 2.FixedThreadPool中最多隻有固定數目線程存在,一個線程實例請求加入FixedThreadPo
相關文章
相關標籤/搜索