~/talk

Adventures with concurrent programming in Java: A quest for predictable latency

Talkat Joker 2015 · 2015-10-16..10-17· [java, concurrency]
slides:none on file

Shows why common Java queues and condition variables cost real latency (90th percentile ≈ 8 microseconds, worst > 5.5 milliseconds), and demonstrates concrete alternatives: replace blocking put/take with nonblocking offer/poll, use a concurrent linked queue or a ring-buffer (disruptor → disruptor 3) to drop a real system from ~80µs to ~50µs, and for heavy multi-producer IPC use lock‑xadd and a many-to-one ring buffer to avoid CAS spin loops and achieve far lower, more predictable latency on Java 8/i7 hardware.

AI-written summary · about

  1. 0:00Introduction to latency
  2. 7:01Measuring blocking in systems
  3. 9:06Causes of application blocking
  4. 12:12Defining latency and SLA
  5. 16:01Why blocking pauses matter
  6. 19:51Queue implementation costs
  7. 24:08Benchmarking queue performance
  8. 31:51Real-world queue requirements
  9. 32:36Disruptor ring buffer design
  10. 37:28Lamport queue alternatives
  11. 41:42Inter-process communication
  12. 46:14High-performance IPC design
  13. 52:58IPC benchmark results
  14. 55:03Java vs C++ performance gaps
  15. 1:00:46Future of Java concurrency
~/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.