1. Cachedthreadpool? 緩存線程池? 沒有固定線程 線程數(shù)也沒有限制 有空閑的用空閑的沒有就新建
2. Fixedthreadpool? 有固定的核心線程? 當(dāng)任務(wù)比核心線程多 就等待
3. Singlethreadpool? 里面只有一個(gè)線程? 按提交順序? 順序執(zhí)行
1. Cachedthreadpool? 緩存線程池? 沒有固定線程 線程數(shù)也沒有限制 有空閑的用空閑的沒有就新建
2. Fixedthreadpool? 有固定的核心線程? 當(dāng)任務(wù)比核心線程多 就等待
3. Singlethreadpool? 里面只有一個(gè)線程? 按提交順序? 順序執(zhí)行