~/talk

New Concurrency Utilities in Java 8

Talkat GOTO Berlin 2014 · 2014-11-06..11-07· [concurrency, java]
links:none on file
slides:none on file

Java 8 adds concrete tools: CompletableFuture is a CompletionStage-based Future with dozens of fluent methods (thenApply/thenAccept/thenRun, thenCombine, allOf/anyOf), static factories (supplyAsync/runAsync) that default to a singleton ForkJoin commonPool (size = processors − 1), and cancel that does not interrupt the running task. StampedLock supplies optimistic reads with validate and fallback to pessimistic read/write. ConcurrentHashMap gains atomic computeIfAbsent/merge/forEach/search, and LongAdder/Accumulators split counters into cells to reduce contention.

AI-written summary · about

  1. 0:00Start
  2. 16:04reactive programming
  3. 27:29key difference
  4. 32:48Internals - mode
  5. 38:09atomic adder
~/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.