~/talk

Everything You Don’t Want to Know About Concurrency on the JVM

TalkinPolishat JDD 2023 · 2023-10-24..10-25· [java, concurrency]
links:none on file
slides:none on file

The talk examines JVM concurrency mechanisms—synchronized (monitors), ReentrantLock, and java.util.concurrent.atomic types—comparing their implementations and trade-offs. It digs into implementation details like adaptive locking, what threads do when parked, futexes, and how Atomics map to hardware-level locking, and gives performance, scalability implications and practical advice on when to use each mechanism.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Author’s background
  3. 3:50Java concurrency locks
  4. 8:09Synchronized under the hood
  5. 11:49Fast lock inflation
  6. 14:00Object monitors
  7. 17:34Inflation details
  8. 20:57JVM lock optimizations
  9. 23:08ReentrantLock
  10. 25:20Lock performance ARM
  11. 27:50Custom locks with conditions
  12. 28:54Atomic variables
  13. 33:31Lock-free algorithms
  14. 35:19Universal scalability law
  15. 38:25Benchmarking locks
  16. 40:39Atomics vs locks
~/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.