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
  • 2316
  • 1431

Comments

Add your comment
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.

Voters For This Link (8)



Voters Against This Link (1)



Spring Integration
Written by: Soby Chacko
Featured Refcardz: Top Refcardz:
  1. Search Patterns
  2. Python
  3. C++
  4. Design Patterns
  5. OO JS
  1. PhoneGap
  2. Spring Integration
  3. Regex
  4. Git
  5. Java