Simulate systems over timeLesson 39 of 76 · 8 min

Parallel work changes the critical path

Calculate finish time from a task dependency graph.

Task durations alone do not determine project completion. The dependency graph says which tasks can run together and which must wait. For two parallel preparation tasks followed by a review, completion is max(A, B) plus the review duration. The critical path is the dependent task chain controlling completion; here it passes through the slower preparation and then review.

Simulate the same duration draws under both a serial and a parallel schedule. This isolates the scheduling rule from differences in sampled tasks. With positive durations and unlimited resources for the parallel branches, the parallel schedule cannot take longer than the serial one in the same trial.

Real resource constraints may prevent this ideal parallelism. A shared specialist, common equipment or rework loop belongs in the model when it affects feasibility. A shorter simulated finish does not establish that the organisation can execute the proposed schedule.

Parallel work joins at the slower task
  1. Two preparations overlap
    A∥BA\quad\parallel\quad B
  2. Both must finish
    max⁡(A,B)\max(A,B)
  3. Then review
    T=max⁡(A,B)+RT=\max(A,B)+R
Reference illustration. The authored dependency graph allows A and B to overlap but requires both before review. Serial time is A + B + R. Resource limits or a different dependency graph change this model.

Must both parallel branches finish before the review begins?

Write a prediction (optional)

Seeded teaching simulation

Select Run Python below with the code unchanged.

Tools
About Python ↗

The code is editable. Press Ctrl+Enter or ⌘+Enter to run Python from the editor.

Published example output

This result comes from the original Python. Your runs appear above. Build environment ↗

Serial / parallel median (days): 13.953 9.414
Parallel P(finish <= 12 days): 0.9114
Fraction where B is the longer preparation: 0.8279

Read the first result

The controlling branch can differ from trial to trial. A critical path based only on mean task durations can miss that variability.

Try an edit

Add print("Half serial median (days):", round(np.median(np.where(rng.random(len(a)) < .5, serial, parallel)), 3)) at the end of the editor. Select Run Python again. Compare Half serial median (days) with Serial / parallel median (days). What evidence would justify independent 50% resource conflicts in a real project?

Back to the Python editor

Scope. The parallel schedule assumes resources are available and there is no interference between branches.

Try a fresh case

A and B run together, then C starts after both finish. Which formula is correct?

Choose an answer
Need a hint?
Hint 1

Draw the dependency arrows.

Hint 2

Locate the moment when C is permitted to start.

Your notes