fork-join 并行语句块 ; 并行块 ; 分支聚合活动 ; 分支合并
fork - join 分支
Fork and Join Nodes 分叉与汇合
fork and join 分叉和汇合
Waiting tasks in fork/join do not actually block threads.
fork/join 中处于等待中的任务实际上不阻止线程。
We already showed the decision/merge mapping in the MultiMethod project, so this part will concentrate on the fork/join mapping.
我们在 MultiMethod 项目中已经介绍了 decision/merge 映射,因此该部分将集中讨论一下 fork/join 映射。
Revisiting the example from Listing 6, notice that max() is a method already provided on parallel collections, so there is no need to define and invoke a fork/join task directly, as in Listing 7
再看一下 清单 6中的示例,注意到,max()是一个已经在并行集合中提供的方法,因此没有必要直接定义和调用 fork/join 任务,如清单 7 所示
应用推荐