Computer Science EngineeringHard

A program executes 10^9 instructions on a 1 GHz processor with an average CPI of 2. The execution time is

  1. A. 0.5 s
  2. B. 1 s
  3. C. 2 s
  4. D. 4 s

Correct answer: C. 2 s

Time = instructions * CPI / clock rate = 10^9 * 2 / 10^9 = 2 s.

More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions

Exams that ask this topic