~/talk

Parallel Streams, CompletableFuture, and All That: Concurrency in Java 8

Talkat Oracle OpenWorld 2017 · 2017-10-01..10-05· [concurrency, java]
links:none on file
slides:none on file

Covers concrete Java 8 and 9 techniques: parallel streams backed by the ForkJoinPool common pool (size from Runtime.getRuntime().availableProcessors plus one), CompletableFuture coordination including complete and completeExceptionally and CompletableFuture.supplyAsync, and ExecutorService overrides. Gives JMH benchmarks showing parallel wins only when operations are independent associative and n×Q passes a threshold, demos a real app that downloads MLB box_score.json with OkHttp JSoup and Gson, saves files, handles rainouts, and works end to end when the Wi Fi cooperates.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46About Ken
  3. 1:42Modern Java Recipes
  4. 3:04Safari Books
  5. 3:15Definitions
  6. 4:09Simple Made Easy
  7. 5:59Brian Gets
  8. 7:16Factory Methods
  9. 8:25Parallel and Sequential
  10. 9:19Part of a Pipeline
  11. 9:53Sequential Parallel Tests
  12. 13:01When is Parallel Worth Doing
  13. 15:34Partitioning
  14. 16:41Demonstration
  15. 18:17Fork Join Pool
  16. 24:48Change Threads
  17. 26:35Future
  18. 27:57Busy Waiting
  19. 28:35CompletableFuture
  20. 32:01Methods
  21. 33:34Combined Methods
  22. 33:58Overloads
  23. 34:12Async
  24. 34:53Overload
  25. 35:55Supply Async
  26. 36:26Get and Join
  27. 37:34Wait quiescence
  28. 41:41Example
~/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.