ForkJoin 中的任务主要分为两个: RecursiveAction 以及 RecursiveTask 。而常用的也是继承这两个类,并且重写 compute() 函数,完成子任务的工作。
確定! 回上一頁