~/talk

Thread Safety with Phaser, StampedLock, and VarHandle

Talkat Oracle Code One 2018 · 2018-10-22..10-25· [java, concurrency]
slides:none on file

Compares concrete concurrency tools and shows working code and measurements: replaces CyclicBarrier/CountDownLatch with phaser dynamic registration to deregister interrupted parties and keep meetings progressing, demonstrates fork/join cooperation via managed blockers, uses StampedLock optimistic reads to cut system CPU from roughly 17–25% down to near zero in a position/distance benchmark, and replaces locking with VarHandle CAS on a double[] to implement atomic moveBy with high throughput. Code is run live and the demos succeed with measured performance gains.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Phaser
  3. 2:20Scrum Master
  4. 7:43Phaser Cancellation
  5. 13:05Who am I
  6. 15:05What is this
  7. 21:46The moveby
  8. 24:42The readwrite lock
  9. 31:55Exception prevention
  10. 34:18Range check
  11. 36:32VarHandle
  12. 38:18Position to VarHandle
  13. 40:38Campaign Set
  14. 43:54Questions
~/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.