全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Work, span, parallelism?

又称: work (of a computation) · span · parallelism (ratio)

Definition 24.5 University Computer Science — Year 3 · 第 24 章 — Parallel Programming

A computation is modelled as a directed acyclic graph, its DAG: one node per operation, taking unit time, and an edge from each operation to every operation that uses its result. The work WW of the computation, also written T1T_1, is its number of nodes; its span SS, also written T∞T_\infty, is the number of nodes on a longest path, its critical path. Its parallelism is the ratio W/SW / S.

The DAG of merge sort on four elements, each merge a chain of one step per element it outputs. Work 8, span 6; the shaded critical path runs through one of the two small merges, then the whole final merge.
The DAG of merge sort on four elements, each merge a chain of one step per element it outputs. Work 8, span 6; the shaded critical path runs through one of the two small merges, then the whole final merge.
在原文中阅读 →