Concurrency & Thread Pool
2019-04-07 本文已影响0人
michael_0x
No Thread Pool, high cost to create new threads

Thread Pool to reuse threads already created

Consideration:

Thread Pools Java offered:

CachedThreadPool:

ScheduledThreadPool

constructor



remark: 0 seconds means not applicable
Queue types for different pools

task reject policy



Life Cycle

Callable & Future


