            List<Future<Long>> results = exec.invokeAll(tasks);
            return results.stream().mapToLong(c -> {
                try {
                    return c.get();
                } catch (InterruptedException | ExecutionException e) {
                    e.printStackTrace();
                    return 0;
                }
            }).sum();
        } catch (InterruptedException e) {