Concurrency & Thread Pool
2019-04-07 本文已影响0人
michael_0x
No Thread Pool, high cost to create new threads
image.pngThread Pool to reuse threads already created
image.pngConsideration:
image.pngThread Pools Java offered:
image.pngCachedThreadPool:
image.pngScheduledThreadPool
image.pngconstructor
image.png image.png image.pngremark: 0 seconds means not applicable