~/talk

Asynchronous Programming in Java using Virtual Threads

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

Demonstrates that Project Loom virtual threads (Java 19 preview / Java 20 work) let the JVM create Thread.startVirtualThread instead of OS threads, turning blocking IO into non-blocking at the OS level; a thread.sleep demo fails around ~10k native threads with “unable to create native threads” but easily hits 20–30k and one million virtual threads; shows kotlin coroutines/continuations bytecode (continuation parameter) and java.nio file line-count IO example; preview feature, not yet for production.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:04Parallel vs concurrent
  3. 3:14Understanding non-blocking
  4. 5:43Traditional Java threads
  5. 10:43Problems with multi-threading
  6. 16:20Subroutines and continuations
  7. 27:10Introducing virtual threads
  8. 34:56Non-blocking with virtual threads
  9. 42:06When to use virtual threads
  10. 43:33Impact on Java code structure
  11. 49:34Key benefits of 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.