~/talk

Loom Virtual Threads in the JDK 20

Talkat Devnexus 2023 · 2023-04-04..04-06· [java]
slides:none on file

Loom brings cheap, JVM-level threads that detach tasks from platform threads by suspending stacks to the heap via continuations, enabling nonblocking IO at scale; demos show 1 million virtual threads in <6s, start times in microseconds and per-thread memory ~100KB now (goal ~10KB), and a Spring Boot demo using newVirtualThreadPerTaskExecutor with stack traces showing continuation yield/run suspension. Virtual threads migrate across platform workers, pin when synchronized or calling native code, and target IO-heavy workloads (not CPU-bound parallelism); structured concurrency and scope values are incubating.

AI-written summary · about

  1. 0:00Start
  2. 9:532004: Java Util Concurrent
  3. 55:44The Travel Agency Example
  4. 56:43Stuctured Concurrency Based Travel Agency
~/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.