Balancing unequal tasks across workers

Eight independent tasks, A through H, take 9, 7, 5, 3, 1, 3, 5, and 7 ms respectively on one worker. Four identical workers start simultaneously. Each worker executes its assigned tasks sequentially. Assume enough processor cores for all workers, unchanged task times during parallel execution, and no scheduling or synchronization costs.


A bar chart shows the execution times of eight independent tasks.


Compare these assignments:

  • Contiguous assignment: worker 1 receives A and B; worker 2 receives C and D; worker 3 receives E and F; worker 4 receives G and H.
  • Cyclic assignment: worker 1 receives A and E; worker 2 receives B and F; worker 3 receives C and G; worker 4 receives D and H.

Complete the table with each worker's total execution time and the elapsed time until the whole batch finishes. Enter exact integer values in milliseconds.

AssignmentWorker 1 time (ms)Worker 2 time (ms)Worker 3 time (ms)Worker 4 time (ms)Batch elapsed time (ms)
Contiguous
Cyclic

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Parallel Programming Questions: