知识卡片

普通读书笔记卡 · 2313.e.5.f.11.a.2.b.4

屏障等待完整批次

理解等级:中级

普通合并只是混合输入,屏障则在同一批次全部前置工作完成后才放行后续阶段。动画帧可并行渲染,组装某段视频却需要收齐对应帧。屏障保证集合完整性的前提是知道预期成员和成功标准;慢任务或缺失项会拉长等待,需有失败与超时策略。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 13. Coordinated Batch Processing · 查看原书依据

      work items aren’t released out of the join until all of the work items that are processed in parallel are completed. This is also generally known as barrier synchronization in concurrent programming. An illustration of the join pattern for a coordinated batch is shown in Figure 13-2.

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第13章《Chapter 13. Coordinated Batch Processing》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch13.html) - 结论依据:原文动画帧与join/barrier定义说明完整性和并行度代价。 - 原始内容:work items aren’t released out of the join until all of the work items that are processed in parallel are completed. This is also generally known as barrier synchronization in concurrent programming. An illustration of the join pattern for a coordinated batch is shown in Figure 13-2.