~/talk

Turbo Charge CPU Utilization in Fork/Join Using the ManagedBlocker

Talkat Devoxx UK 2017 · 2017-05-11..05-12· [java, concurrency]
links:none on file
slides:none on file

Shows that using Fork/Join plus a ManagedBlocker and a reserved-cache pattern cuts wasted CPU and speeds a big-integer Fibonacci run from ~46s down to ~7s, and then to ~6.9s when using managed blocking. Implements a putIfAbsent reserved placeholder to avoid duplicate work, rewrites parts of BigInteger multiply/square as forked tasks to parallelize Karatsuba/Tom Cook, and compares behavior with CompletableFuture and the common ForkJoinPool; code and exercises live on the linked GitHub.

AI-written summary · about

  1. 0:00Introduction and CPU utilization
  2. 1:03Clock speed limits and parallelism
  3. 2:31Fibonacci series algorithm
  4. 7:09Demo 1: Single-threaded Fibonacci
  5. 11:07Demo 2: Fork/Join parallelism
  6. 16:19Demo 3: Hacking BigInteger
  7. 24:06Demo 4: Caching results
  8. 31:49Demo 5: Placeholder objects
  9. 37:16ManagedBlocker explained
  10. 43:00Demo 6: Using ManagedBlocker
  11. 45:14CompletableFuture and homework
~/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.