~/talk

From Concurrent to Parallel

Talkat Jfokus 2016 · 2016-02-08..02-10· [concurrency, java]
slides:none on file

Argues that parallelism is an optimization distinct from concurrency and demonstrates Java SE 8 parallel streams built on ForkJoin for divide‑and‑conquer tasks. Shows arrays split cheaply and get strong speedups, boxed Integers suffer cache misses and can be slower, linked‑list or encounter‑order sources split poorly. Measures matter: chunk work of a few hundred cycles (roughly 50–500 elements) is a good rule, and expensive merges (e.g., collecting into maps/sets) can cause a 4× slowdown at ~10k items.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Hardware Context
  3. 4:39Concurrency
  4. 16:46Parallelism is a lost cause
  5. 18:33Bad Habits
  6. 20:31Using Concurrent
  7. 23:41Parallel Decomposition
  8. 25:48Combining Results
  9. 26:35Dynamic Decomposition
  10. 29:15Does this work
  11. 30:49ForkJoin
  12. 31:48Streams
  13. 32:52Example
  14. 34:37Splitting
  15. 36:46Locality
  16. 38:52Encounter Order
  17. 40:36Merging
  18. 43:33Summary
~/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.