~/talk

Continuations: The magic behind virtual threads in Java

Talkat Jfokus 2025 · 2025-02-03..02-05· [java, concurrency]
slides:none on file

Claims that Continuations power virtual threads and that a simple VirtualThread built from the Continuation API can pause, unmount and resume across carriers. Implements a scheduler (queue + fixed thread pool of platform threads), simulates blocking with a Timer that yields and later resumes a continuation, and measures scale: 2,000 virtual threads on 10 platform threads complete while the equivalent runnable-based run takes minutes (demo shows ~15 minutes). Code runs and demonstrates mounting/unmounting and higher throughput.

AI-written summary · about

  1. 0:00Virtual threads intro
  2. 2:10How virtual threads work
  3. 9:36Understanding continuations
  4. 19:58Practical uses of continuations
  5. 27:14Building virtual thread
  6. 44:36Virtual threads scalability demo
  7. 45:17Summary
~/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.