Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Work, span, parallelism?

Dikenal juga sebagai: work (of a computation) · span · parallelism (ratio)

Definition 24.5 University Computer Science — Year 3 · Bab 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.
Baca dalam konteks →