~/talk

Butcher Virtual Threads like a pro!

Talkat GeeCON 2024 · 2024-05-15..05-17· [java]
slides:none on file

Demo shows creating 1 million virtual threads in ~8 seconds but only when threads just sleep; CPU-bound work on those threads still saturates cores and runs no faster than platform threads. Reproduces a real bug using Toxiproxy + Testcontainers and an Elasticsearch client, finds a synchronized call with the deprecated high‑level client pins virtual threads (detected via jdk.VirtualThreadPinned JFR event), fixes by switching to the modern client or removing synchronization. Warns against swarming tasks, ignoring interrupts, mutating scope values, and misusing virtual threads for CPU work.

AI-written summary · about

  1. 0:00Introduction to virtual threads
  2. 3:42About the speaker
  3. 5:49Talk disclaimers and warnings
  4. 7:33Virtual threads limitations
  5. 10:24How virtual threads work
  6. 11:07What not to do with virtual threads
  7. 15:50Demo pinning virtual threads
  8. 27:59Quantum physics and virtual threads
  9. 33:24Parallel streams vs virtual threads
  10. 40:32Structured concurrency explained
  11. 45:33Scope values introduction
  12. 50:14How to misuse virtual threads
~/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.