~/talk

STM and Structured Concurrency — The Battle with Multithreading Dragons

TalkinPolishat Confitura 2025 · 2025-09-19..09-20· [java, concurrency]
links:none on file
slides:none on file

Compares Java's traditional locks/synchronized to a custom extended-lock (an aspect-wrapped try-lock map) and Clojure-style STM refs by implementing a bank-transfer demo that deadlocks under naive locking and shows failures in roughly 1 in 100 runs across ~10,000 concurrent runs. Shows the extended-lock reduces some races but increases complexity and maintainability, while STM provides transactional safety with lower throughput and more consistent behavior; connects these trade-offs to upcoming structured-concurrency work in Java.

AI-written summary · about

  1. 0:00Concurrency intro
  2. 8:23Multithreading sync needs
  3. 13:02Single object sync in Java
  4. 15:11Multi-object sync pitfalls
  5. 18:31Deadlock problem and avoidance
  6. 22:53Traditional sync limits
  7. 23:57AOP alternative
  8. 31:07Databases for concurrency
  9. 33:58STM introduction
  10. 36:47Java STM with Closure
  11. 38:55STM pros and cons
  12. 39:15Semaphores and phasers
  13. 42:10Structured concurrency hope
  14. 45:23Custom scopes and errors
  15. 47:54Future of structured concurrency
  16. 48:42Summary & 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.