~/talk

Unveiling the Magical Power of Java Virtual Threads

Talkat Devnexus 2025 · 2025-03-04..03-06· [concurrency, java]
links:none on file
slides:none on file

Project Loom adds user‑space virtual threads to the JVM (goal: millions of threads) implemented via continuations and a ForkJoinPool scheduler with carrier threads that mount/unmount thread state; synchronized blocks and native calls cause pinning with synchronized/native calls (jdk 24 uplifts synchronization to avoid pinning). Experiments on Open Liberty using an Open Liberty online banking simulator (2‑CPU) show faster ramp‑up but throughput limited (~50% in some tests) due largely to the scheduler and OS interactions. Structured concurrency and scoped values replace thread‑locals for bounded, safer context propagation.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:37Legacy Java threading model
  3. 8:43Project Loom and virtual threads
  4. 16:39Virtual threads internals
  5. 27:15Virtual thread pinning issues
  6. 32:39Best practices for virtual threads
  7. 34:48Virtual threads performance analysis
  8. 45:34Structured concurrency overview
  9. 48:54Scoped values explained
  10. 54:20Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.