JavaChap Blog Java and Technology musings for the masses

10Jul/110

Java 7′s Fork/Join Framework

Eric Bruno:

Fork/Join is an enhancement to theĀ ExecutorService implementation that allows you to more easily break up processing to be executed concurrently, and recursively, with little effort on your part. It's based on the work of Doug Lea, a thought leader on Java concurrency, at SUNY Oswego. Fork/Join deals with the threading hassles; you just indicate to the framework which portions of the work can be broken apart and handled recursively. It employs adivide and conquer algorithm that works like this in pseudocode (as taken fromĀ Doug Lea's paper on the subject):

http://drdobbs.com/blogs/java/231000556