~/talk

Nonblocking algorithms/ CAS/Atomics

Talkat JavaDay Kharkiv 2015 · 2015-10-15..10-16· [concurrency, computer-vision]
links:none on file
slides:none on file

Shows how to build real lock-free primitives in Java using compare-and-swap via Unsafe and Atomic classes, including a lock-free counter and a replace-the-range object implemented with AtomicLongFieldUpdater (and reflection to get offsets). Demonstrates microbenchmarks where CAS compiled to a single CPU instruction yields up to ~80x advantage under contention, explains GC/allocation cost when creating new objects per update, and spells out progress guarantees (obstruction/wait/free) and the Amdahl tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 6:48Locking problems in multithreading
  3. 13:48Amdahl's law and performance
  4. 20:15CAS and atomic operations
  5. 27:47Java Atomic API examples
  6. 36:43Optimizing with nonblocking algorithms
  7. 41:04Atomic counters demo
  8. 47:24Nonblocking vs lock-free algorithms
  9. 49:08Study recommendations
~/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.