~/talk

From Linux Threads To ForkJoinPool

links:none on file
slides:none on file

Explains how Linux CFS schedules by vruntime and how the kernel timer plus target latency 20ms produce tiny quanta when many threads exist, causing high context-switch overhead; shows that Java implements park/unpark on top of pthread primitives and that AbstractQueuedSynchronizer uses CAS plus spin-then-park for locks; demonstrates why classic single-queue thread pools suffer contention and why ForkJoinPool uses work-stealing deques, giving much better throughput for many tiny tasks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:55Linux scheduler
  3. 8:56Scheduling policies
  4. 10:39CFS scheduler
  5. 14:36Multicore systems
  6. 17:52Thread communication
  7. 27:31Linux primitives
  8. 29:19Park and unpark
  9. 32:09Mutex implementation
  10. 35:41Java synchronization
  11. 36:03Thread pools
  12. 39:53Pool problems
  13. 41:58Work stealing
  14. 42:38ForkJoinPool
  15. 44:50Summary
  16. 46:42Q&A
~/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.