~/talk

Java's Concurrency Journey Continues! Structured Concurrency & Scoped Values

Talkat JCON WORLD ONLINE 2023 · on Tuesday, 2023-11-21· at 11:00· Live-Stream 3, Online - Remote· [java, concurrency]
slides:none on file

Java 21 preview demos show Structured Concurrency coordinating virtual threads so subtasks join or short‑circuit: a restaurant example forks waiters, uses shutdownOnFailure to cancel other tasks when one ingredient (each ingredient has ~5% chance to be out) is missing, and uses shutdownOnSuccess to return on first good result. Virtual threads scale to millions of virtual threads, but pin on synchronized/native calls; Scoped Values are introduced as ScopedValues are immutable with limited, inheritable lifetimes and demo code on GitHub.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:13Traditional Java concurrency
  3. 5:48Executor service challenges
  4. 10:37Thread locals
  5. 14:58Virtual threads
  6. 22:04Structured concurrency
  7. 33:03Sanity checks on new features
  8. 35:02Scoped values
  9. 42:11Practical implications 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.