0

I have been trying to understand this micro-benchmark.

In the source there are four types of ForkJoin: ForkJoinreuse and ForkJoinrecursivedeep. I don't understand in which way they are different from ForkJoin and ForkJoinrecursive, even when I have read the sources.

assylias
  • 321,522
  • 82
  • 660
  • 783
Bionix1441
  • 2,135
  • 1
  • 30
  • 65

1 Answers1

1

For these two classes it looks as if there is a precision difference:

ForkJoinRecursive.java versus ForkJoinRecursiveDeep
       'if (slices < 10000)' versus 'if (slices <= 1)'

Overall it appears that the code is trying to use concurrency, i.e. implement multiple threads. Check out the links below for more information.

Concurrency
Processes and Threads

Razelle
  • 56
  • 4