~/talk

Asynchronous Programming in Java using Virtual Threads

Talkat JDD 2024 · 2024-10-22..10-23· [java, concurrency]
slides:none on file

Java now runs blocking IO without blocking OS threads by using virtual threads mount and unmount as continuations ride courier threads, so a blocked task unmounts its virtual thread and real threads serve others. Existing code needs one line change to use a virtual-thread-per-task executor, yielding far fewer threads, higher throughput and better availability for IO workloads. Kotlin coroutines use suspend fun and compiler continuations, Java hides that indirection in the JVM. Avoid virtual threads for CPU bound work.

AI-written summary · about

  1. 0:00Introduction to Java evolution
  2. 2:53Shift to asynchronous programming
  3. 13:10Non-blocking vs blocking threads
  4. 23:08Virtual threads concept
  5. 36:41Virtual threads in practice
  6. 51:54Async programming challenges
  7. 58:03Architectural benefits of virtual threads
  8. 1:00:10Summary and Q&A
~/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.