[concurrency-interest] ForkJoin Usage

Gustavo Henrique Lima Pinto gustavohenrique.86 at gmail.com
Tue Nov 26 19:18:41 EST 2013

Hi all,

I'm starting using ForkJoin in some experiments, and I was wondering which
are the differences between use FJ recursively, that is, creating a
RecursiveTask, defining a threshold, invoking and joining the tasks, in a
very similar way that is recommend here[1], and use it like the Executor
framework, for instance:

ForkJoinPool pool = new ForkJoinPool();
pool.execute(new Thread() {
public void run(){ someComputation)()}

I saw on the ForkJoinPool source code that each invocation of the submit
and/or execute methods create a new ForkJoinTask, and each task is then
enqueued and processed normally.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20131126/6af477f6/attachment.html>

More information about the Concurrency-interest mailing list