You are on page 1of 1

4.1 clock 2Ghz clock 2.

5Ghz
Ins count 6000000 P1 P1 cpu time P2 P2 cpu time
30% 1800000 2 0.0018 3 0.00216
50% 3000000 3 0.0045 3 0.0036
20% 1200000 2 0.0012 5 0.0024
      0.0075   0.00816

P1=7.5ms
P2=8.16 ms
P1 is efficient

4.3 Clock cycles required in both cases


Ins P1- Clock
count 6000000 P1 cycle   P2 P2- Clock cycle
30% 1800000 2 3600000   3 5400000
50% 3000000 3 9000000   3 9000000
20% 1200000 2 2400000   5 6000000
      15000000     20400000

4.4

Expected CPU time = 5ms


Increased clock rate results in 1.2 times P1 clock cycles = 15000000*1.2

Clock rate =1.2times P1 clock cycles/CPU time = 15000000*1.2/5*10^-3=3.6GHz.

4.5

Expected CPU time = 2ms


Increased clock rate results in 1.4 times P1 clock cycles = 15000000*1.4

Clock rate =1.4times P1 clock cycles/CPU time = 15000000*1.4/2*10^-3=10.5GHz.

You might also like