Adding up array in parallel. First attempt by creating 4 threads:
An alternative divide and conquer solution:
An alternative (even better) divide and conquer solution where we only spawn extra threads when it makes sense:
An alternative (even better yet) solution to adding up elements in an array using ForkJoin framework:
Another use of fork-join pool for adding vectors