thepointman.dev_

Courses / Java Concurrency

Fork/Join & Work-Stealing

advanced6 lessons

The divide-and-conquer mental model, ForkJoinPool's work-stealing deques (why idle threads steal from the tail of busy threads' deques), RecursiveTask vs RecursiveAction, fork/join sequencing to avoid thread starvation, commonPool dangers for I/O tasks, and how parallel streams use ForkJoin under the hood.

// Lessons

  1. 01

    Divide-and-Conquer and the Fork/Join Mental Model

    soon
  2. 02

    ForkJoinPool — Work-Stealing Deques and the Thread Count

    soon
  3. 03

    RecursiveTask — Splitting Work and Joining Results

    soon
  4. 04

    RecursiveAction — Fire-and-Forget Parallel Computation

    soon
  5. 05

    ForkJoinPool.commonPool — What It Is and When Not to Use It

    soon
  6. 06

    Parallel Streams and Fork/Join — The Hidden Connection

    soon