๐งต new Thread() per task
๐ Thread pool (3)
โบ Reset
threads created
0
one ๐จ per task
tasks done
0/8
of 8 submitted
queued
0
waiting for a worker
โถ Submit 8 tasks
pool size
โ
3
๏ผ
๐ฆ queue: unbounded
queue โ
a brand-new thread per task
create cost:
0 ร ๐จ
task queue
threads
๐งต A new thread for every task
Hit
โถ Submit 8 tasks
and watch how many threads get built.
โธ
You submit a
task
; the executor picks
which thread and when
.