~/talk

Configuring JVM Thread Pools for Optimal CPU Utilization

Talkat Devoxx Poland 2022 · 2022-06-22..06-24· [java]
links:none on file
slides:none on file

Recommendation: use a fixed pool sized to CPU cores for CPU-bound tasks and a separate growable pool for blocking I/O to avoid context switching and core underutilization; tested with 50 arrays of 1000 numbers sorted across pool sizes (3–20 and much larger) showing best times near core count (MacBook peaked around 5 threads) and exponential slowdowns as threads exceed cores. Uses fork-join and ThreadPoolExecutor defaults and notes virtual threads (Project Loom) as an upcoming alternative. Results: separation empirically improves CPU utilization.

AI-written summary · about

  1. 0:00Introduction to concurrency
  2. 3:21Academics part recap
  3. 11:06JVM threading model
  4. 15:48Thread pools in Java
  5. 20:29Calibrating thread pools
  6. 26:12Project Loom preview
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.