Work and Critical Path Length

Total work sums all task durations under a model. The critical path is the longest chain of dependent work and bounds an ideal schedule's completion time.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a small graph
  2. Compare limits
  3. Compute total work and longest dependent chain
  4. Combine theoretical bounds with real scheduling

Trace a small graph

A two-unit read precedes branches of durations three and five, followed by a one-unit result. Work is eleven. The longest chain has \(2+5+1=8\) units. Task graph readiness identifies the legal overlap.

Compare limits

Even with many workers the dependent chain remains. With fewer workers some independent work may also run sequentially. Throughput under concurrency covers measurement beyond this model.[1]

Compute total work and longest dependent chain

Let task A take two time units, B take five independently, and final C take three after both. Total work is ten units. The longest prerequisite path B to C takes eight, so adding more processors cannot make this idealized dependency graph shorter than eight. See scheduling with a graph.

A 2, B 5 in parallel
Barrier before final C 3
Work=10
Span=max(2,5)+3=8

Combine theoretical bounds with real scheduling

On \(p\) equal workers, elapsed time is at least the maximum of span and total work divided by \(p\) under the simple cost model. Communication and scheduling can raise measured time.

References

  1. OpenMP Architecture Review Board, OpenMP API Specifications ↩