~/talk

Multithreading vs Asynchronous Programming: The Architectural Shift

slides:none on file

Compares Java threading evolution with concrete failures and fixes: a two-thread pool example shows a pool-induced deadlock when parent tasks spawn children; ForkJoinPool and Streams (Java 8) change structure but IO plus exceptions make CompletableFuture painful — the presenter calls it completable future has no future. Demonstrates code switching Thread.start to virtual threads (Java 21), observes threads unmounting/mounting during IO and shows virtual threads let 20,000 concurrent tasks run on one machine instead of a cluster.

AI-written summary · about

  1. 0:00Introduction to the talk
  2. 1:26Sequential vs concurrent code
  3. 3:54The pain of multithreading
  4. 8:53Evolution of Java threading
  5. 11:01Parallel vs concurrent tasks
  6. 14:18What is asynchronous programming
  7. 21:05Thread blocking and scalability
  8. 26:51Java 8 streams and parallelism
  9. 32:09CompletableFuture basics
  10. 36:31Challenges with CompletableFuture
  11. 45:59CompletableFuture pain points
  12. 47:25Virtual threads in Java 21
  13. 51:19Demo of virtual threads
  14. 59:57Summary of architectural shift
~/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.