~/talk

Locks? We Don't Need No Stinkin' Locks!

Talkat JAX London 2012 · 2012-10-16..10-17· [concurrency, java]
links:none on file
slides:none on file

Argues nonblocking concurrency is simpler and faster than locks and demonstrates it with CPU assembly, Java memory model rules, volatiles, Atomic classes, Unsafe and microbenchmarks. Shows Disruptor evolution: a failed spin-until-prev algorithm, a co-op pending-publications design, and a final ring-buffer publish-with-availability-array that removes write contention and scales. Reports volatile writes around ~8 ns uncontended, thread wakeups costing micro to millisecond ranges (4–16 µs up to 20–40 ms), and finds lazySet* and CAS are key practical tools.

AI-written summary · about

  1. 0:00Introduction to concurrency
  2. 3:55Understanding CPU hardware
  3. 7:25The Java memory model
  4. 11:51Happens-before and causality
  5. 17:03Tools for non-blocking design
  6. 22:18Atomic performance analysis
  7. 30:12Designing a ring buffer
  8. 37:22Optimizing for high performance
  9. 45:26Thread wakeup challenges
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.