J.U.C–ForkJoin框架
java7提供并行执行任务的框架,并把大任务拆分成若干个子任务,充分利用线程进行并行计算
@Slf4j
public class ForkJoinExample extends RecursiveTask<Integer> {
public static final int threadId=2;
private int start,end;
public ForkJoinExample(int start,int end){
this.start=start;
this.end