Skip to content

ISRO Scientist/Engineer CSE 2018Computer Organization and Architecture › Not yet assigned to a topic

ISRO Scientist/Engineer CSE 2018 PYQ: A particular parallel program computation requires 100 sec when executed on a single processor, if $40\%$ of…

A particular parallel program computation requires 100 sec when executed on a single processor, if $40\%$ of this computation is inherently sequential (i.e. will not benefit from additional processors), then theoretically best possible elapsed times of this program running with 2 and 4 processors, respectively, are:

  1. A
    20 sec and 10 sec
  2. B
    30 sec and 15 sec
  3. C
    50 sec and 25 sec
  4. D
    70 sec and 55 sec
    Correct answer

Answer

(D) $70$ sec and $55$ sec

Approach

Apply Amdahl's law. The sequential portion (40% of 100 sec = 40 sec) cannot be sped up, while the parallelizable portion (60% = 60 sec) is divided among the available processors. Total time = sequential time + (parallel time / number of processors).

Reviewed by ISRO IQ Editorial Team.