public static void main(String[] args) throws ExecutionException, InterruptedException {
int tThread = Runtime.getRuntime().availableProcessors();
System.out.println(tThread);
int[] arr = new int[1000];
for (int i = 0; i< arr.length; i++) {
arr[i] = i;
}
Sum result = new Sum(arr, 0, arr.length);
ForkJoinPool forkJoinPool = new ForkJoinPool