~/talk

Java Memory Consistency Model

Talkat 4Developers 2015 · on Monday, 2015-04-20· [concurrency, java]
name:T. Borek
links:none on file
links:none on file
slides:none on file

Defines JMM as visibility rules not GC and shows concrete consequences: reads can legally see surprising values unless ordering or barriers force visibility. Uses JS R 133 history to justify changes to volatile and final, demonstrates timings (L1 ≈0.5 ns, branch miss ≈5 ns, L2 ≈7 ns, main memory ≈100 ns) to explain cache effects, describes memory barriers that flush store/load buffers and enforce cache coherence, and evaluates when double-checked locking is safe and when to use lock-free techniques for performance.

AI-written summary · about

  1. 0:00Start
  2. 5:17Sarita Adve: memory consistency model
  3. 26:18Where it matters
  4. 29:15Program / code optimizations?
  5. 30:10Exemplary CPU
  6. 32:41Barriers / Fences
  7. 36:43Leslie Lamport
~/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.