~/talk

Flavors of Concurrency in Java

Talkat JavaDay Kyiv 2015 · 2015-11-06..11-07· [concurrency, java]
slides:none on file

Compares concrete concurrency options by solving a toy problem: query multiple search engines and return the first result, implemented with raw threads using an AtomicReference, with a fixed thread pool via ExecutorCompletionService (4 threads), with the ForkJoin framework (work-stealing) and parallel streams (warning: they use the common pool and can block), with CompletableFuture for composability, with actor message passing and supervision, with Quasar-style fibers for massive lightweight concurrency, and with software transactional memory which he treats as immature for heavy production.

AI-written summary · about

  1. 0:00Introduction
  2. 1:43Why concurrency matters
  3. 4:24The problem of concurrency
  4. 4:43Approach to the session
  5. 6:29Concurrency vs. parallelism
  6. 11:52Models for computation
  7. 13:52Developer survey results
  8. 15:02The case study problem
  9. 17:00Bare threads
  10. 22:54Java memory model
  11. 25:40Executors and pools
  12. 30:52Fork-join framework
  13. 34:45Review of hardware models
  14. 36:17Completable futures
  15. 37:56Actor model
  16. 38:35Fibers and light threads
  17. 42:13Software transactional memory
  18. 44:51Conclusions and takeaways
  19. 47:48Further reading and closing
~/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.