~/talk

A Tale of Two Cities: How Blocking Calls Are Treated?

Talkat JCON Europe 2023 · on Thursday, 2023-06-22· at 10:00· Cinema 6, Im Mediapark 1, 50670 Köln, Germany· [concurrency, java]
slides:none on file

Walks through Java threading history, shows why OS threads cost time and memory (about 2 MB stack per OS thread), and why executors, Future/Callable, CompletableFuture and reactive stacks tried to work around blocking. Demonstrates Project Loom’s virtual threads (introduced as preview in JDK 19, finalized in JDK 21) and a live run that creates ~8 million virtual threads, explains how each virtual thread yields from its carrier OS thread when blocking, restoring simple imperative code and removing thread‑pool tuning.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:22Blocking vs asynchronous programming
  3. 1:04Talk agenda and Project Loom
  4. 2:06Why Java is popular
  5. 2:49Threads as execution environments
  6. 3:54Creating threads in Java
  7. 5:21Thread limitations and costs
  8. 6:03Modern web app thread usage
  9. 7:48Thread creation failure scenarios
  10. 8:55Problems with blocking calls
  11. 10:00Thread blocking impact on throughput
  12. 12:48Sequential vs parallel processing
  13. 14:15Java 5 and thread pools
  14. 15:40Thread pool improvements
  15. 17:53Challenges with reactive programming
  16. 21:14Readability and debugging issues
  17. 24:51Project Loom introduction
  18. 25:55Virtual threads explained
  19. 28:47Virtual thread demo setup
  20. 29:07Virtual thread creation demo
  21. 31:39How virtual threads work
  22. 34:10Virtual threads benefits
  23. 37:00Advantages of virtual threads
  24. 38:26Code comparison demo
  25. 40:17Frameworks supporting virtual threads
  26. 40:40Closing remarks 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.