~/talk

Java's Concurrency Journey Continues! Exploring Structured Concurrency and Scoped Values

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java]
name:Embregts
links:none on file
slides:none on file

Demonstrations show virtual threads running ~950,000 vs ~8,000 platform threads on an M1 and yielding about 35–40% throughput improvement for I/O-heavy workloads. The code builds restaurant and bar demos that implement structured concurrency scopes (shutdown-on-failure and shutdown-on-success) so a failed starter cancels other subtasks and the first-success returns the winner. Scoped values replace ThreadLocals with immutable, lexically bounded bindings; inheritance works safely under structured scopes.

AI-written summary · about

  1. 0:00Introduction
  2. 3:33The illusion of multitasking
  3. 8:30The wrong moment
  4. 10:25The Restaurant Domain
  5. 13:25Creating a Restaurant
  6. 21:05Threats
  7. 26:55Java Thread
  8. 28:40Executive Service
  9. 31:40Executive Service Improvements
  10. 36:43Unrestricted Concurrency
  11. 38:55completableFutures
  12. 39:51Example
  13. 43:12Threat Local
  14. 45:40Announcement Local
  15. 50:08Pros and Cons
  16. 53:39Honorable Mentions
~/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.