CS FundamentalsHardGATE CS (PYQ pattern)

A fixed-size job runs 6 times faster on 8 cores than on 1 core. Assuming Amdahl's law holds exactly (a serial fraction f, the rest perfectly parallel), what speedup should be expected on 32 cores, approximately?

  1. A. 24.00
  2. B. 12.92
  3. C. 30.52
  4. D. 21.00

Correct answer: B. 12.92

1 / (f + (1 - f)/8) = 6 gives 8f + 1 - f = 8/6, so 7f = 1/3 and f = 1/21. On 32 cores: 1 / (1/21 + (20/21)/32) = 21 / 1.625 = 12.92. Scaling linearly (6 x 4) gives 24; Gustafson's scaled speedup 32 - 31f gives 30.52; 21 is the limit 1/f for infinitely many cores.

More Operating Systems questions

Exams that ask this topic