~/talk

Structured Concurrency in Java: The What & Why

Talkat GOTO Amsterdam 2023 · 2023-06-13..06-15· [java, concurrency]
slides:none on file

Project Loom features virtual threads that scale to thousands or millions and let code focus on business tasks instead of thread pools; demos use Thread.ofVirtual, Executors.newThreadPerTask and JUnit wrappers. Live-coded comparisons show CompletableFuture’s callback chains versus an imperative Structured Task Scope that joins subtasks, e.g. create-event (reserve venue, book hotel, buy supplies), first-completing weather source, and customer-offer (customer then savings+loans then calculate offer). Structured Concurrency provides shutdown-on-failure / shutdown-on-success policies, checked execution exceptions, automatic cancellation of siblings, and warns about pinning when synchronized blocks block carrier threads.

AI-written summary · about

  1. 0:00Intro
  2. 0:27Project Loom
  3. 1:55How to create virtual threads?
  4. 3:53Demo
  5. 6:55Virtual Threads continued
  6. 8:28Demo
  7. 9:07Virtual Threads continued
  8. 10:53Structured Concurrency
  9. 14:42CompletableFuture API vs Structured Concurrency API
  10. 15:09Demo
  11. 38:55Shutdown policies
  12. 40:43Outro
~/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.