fork()和invoke()之间的区别
这两个方法都在线程中调用run()任务,但是它们之间有什么区别?
public class ForkJoinTask extends RecursiveTask<Integer>{
@Override
protected Integer compute() {
}
}
New ForkJoinTask().invoke();
//what's the difference between the code up&down side
New ForkJoinTask().fork();