~/talk

Loom Is More Than Virtual Threads

Talkat Devnexus 2024 · 2024-04-09..04-11· [java]
slides:none on file

Project Loom adds virtual threads, structured concurrency and scoped values to Java so you get huge concurrency without rewriting APIs, demonstrated by 108 ms to create 10,000 virtual threads and 1.3s for 1,000,000 virtual threads versus ~2000 ms for 10,000 platform threads. Structured task scopes provide policies like shutdown-on-failure cancels siblings and produce parent child relationships visible in jcmd JSON thread dumps. Scoped values offer a one way, immutable alternative to ThreadLocal suited to virtual threads and require --enable-preview until standardized.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 2:00Project Loom overview
  3. 3:55Virtual threads
  4. 16:26Unstructured concurrency issues
  5. 29:35Structured concurrency
  6. 44:05Scoped values
  7. 53:21Conclusion and resources
~/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.