Link Details

Link 949573 thumbnail
User 935437 avatar

By MrBoolUS
via mrbool.com
Published: Apr 04 2013 / 09:45

In this article we will see some things about concurrent programming with Fork/Join framework in java 7.0.
  • 8
  • 1
  • 2578
  • 1439
User 311278 avatar

jkrochmalski replied ago:

1 votes Vote down Vote up Reply

This is just wrong. Why do you use imports from jsr166y package !? Instead forkJoin() just use: s1.fork(); result = s2.compute() + s1.join(); cheers jotka www.agilecoders.pl

User 311278 avatar

jkrochmalski replied ago:

1 votes Vote down Vote up Reply

or, if you insist on using RecursiveAction instead of RecursiveTask, just use invokeAll(s1, s2); instead of forkJoin(s1, s2);

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java