~/talk

Continuations: The magic behind virtual threads in Java

Talkat Voxxed Days Amsterdam 2025 · on Thursday, 2025-04-03· [java]
slides:none on file

Explains that Java virtual threads are implemented by saving and restoring call stacks with the Continuation API, shows live code building a simple VirtualThread class backed by a Continuation and a scheduler using a ConcurrentLinkedQueue and ExecutorService fixed thread pool, simulates blocking with Timer and resumes continuations, demonstrates a generator built from continuations, and proves scalability by running 2,000 virtual threads on 10 carrier threads while the equivalent runnable version stalls — the prototype works and illustrates mounting/unmounting of virtual threads.

AI-written summary · about

  1. 0:00Introduction to the talk
  2. 1:37Understanding virtual threads
  3. 7:50Exploring continuations
  4. 18:24Generators with continuations
  5. 26:01Building a virtual thread
~/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.