The Stealer — Fork Join Framework

  • parallelism ≥ 2, JDK creates (# of CPUs minus 1) threads for the common pool.
  • parallelism = 1, JDK creates a new thread for every submitted task.
  • parallelism = 0, a submitted task is executed on a caller thread.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store