~/talk

Java Memory Consistency Model

Talkat JavaDay Lviv 2015 · on Sunday, 2015-06-14· [java]
links:none on file
slides:none on file

History shows the original Java memory model is broken and is corrected by JSR-133 (Java 5), with volatile, synchronized and final semantics fixed but still interacting with JVM, OS and CPU implementations. Measure performance: L1 ~0.5 ns, main memory ~100 ns, SSD ~150 µs so cache effects dominate. Practical advice: avoid false sharing by aligning/padding or filling 64-byte cache lines and run small probe tests per JVM+OS+CPU; consider Quasar/fibers for lightweight concurrency.

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:29Laws of computing history
  3. 7:55Concurrency vs parallelism
  4. 11:01Distributed systems and time
  5. 14:56Java threading history
  6. 17:28Understanding memory models
  7. 20:41Java memory model internals
  8. 25:31Compiler and hardware optimization
  9. 29:22Mechanical sympathy explained
  10. 33:27Advanced threading libraries
  11. 35:19Summary and resources
~/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.