5,041 views
4 votes
4 votes
Consider two processors P1 and P2 executing the same instruction set. Assume that under identical conditions, for the same input, a program running on P2 takes 25% less time but incurs 20% more CPI (clock cycles per instruction) as compared to the program running on P1. If the clock frequency of P1 is 1GHz, then the clock frequency of P2 (in GHz) is _________.

please do explain also

1 Answer

7 votes
7 votes
Total execution time, E = No. of instructions executed( #I) $\times$ CPI / clock frequency (F)
$E_{P2} = 0.75 \times E_{P1}$

$\implies 0.75 \times \#I_{P1} \times CPI_{P1} / F_{P1} =  \#I_{P2} \times CPI_{P2}/F_{P2} $

$\implies 0.75 \times \#I_{P1} \times CPI_{P1} / F_{P1} =  \#I_{P1} \times 1.2 \times CPI_{P1}/F_{P2} $

$\implies 0.75 \times F_{P1} = 1.2 /F_{P2} $

$\implies F_{P2} = 1.2 /(0.75 \times F_{P1}) $

$\implies F_{P2} =   1.2 /(0.75 \times 1)  = 1.6$ GHz
edited by

Related questions

0 votes
0 votes
1 answer
2
LavTheRawkstar asked Feb 28, 2017
12,831 views
Consider the Knapsack incidence with n=3(items) with weights {w1,w2,w3}={2,3,4} and profits are {p1,p2,p3}={1,2,5}Given the capacity is 5,{W/M = 5 } Find the optimal solu...