Question

In: Computer Science

Computer A has an overall CPI of 1.5 and can be run at a clock rate...

Computer A has an overall CPI of 1.5 and can be run at a clock rate of 2.5GHz. Computer B has a CPI of 4 and can be run at a clock rate of 4GHz. We have a particular program we wish to run. When compiled for computer A, this program has exactly 100,000 instructions. How many instructions would the program need to have when compiled for Computer B, in order for the two computers to have exactly the same execution time for this program?

Solutions

Expert Solution

CPI (number of cycles per instructions) for computer A = 1.5

Clock rate for computer A= 2.5 GHz

Clock time for computer A = 1/clock rate for A = (1/2.5)ns

CPI (number of cycles per instructions) for computer B = 4

Clock rate for computer B= 4 GHz

Clock time for computer B = 1/clock rate for A = (1/4)ns

Execution time for any computer = number of instructions * number of cycles each instruction take * time required for 1 cycle

For computer A:-

number of instructions = 100,000 = 105

Execution time = number of instructions * number of cycles each instruction take * time required for 1 cycle

= 105 * 1.5 * (1/2.5) ns

=( 3/5)*105-9

= (3/5)*10-4 seconds

For computer B:-

Let Number of instructions here = x

Execution time = number of instructions * number of cycles each instruction take * time required for 1 cycle

= x * 4 * (1/4)ns

= x ns

Now,it is given that execution time in both computers are same.

So, x * 10-9 = (3/5)*10-4

=> x = (3/5) * 10-4+9

So, x = (3/5) * 105 = (3/5) * 10 * 104 = 6 * 104

required number of instructions in Computer B =6 * 104 = 60000


Related Solutions

1. Computer A has an overall CPI of 1.2 and can be run at a clock...
1. Computer A has an overall CPI of 1.2 and can be run at a clock rate of 600MHz. Computer B has a CPI of 2.5 and can be run at a clock rate of 750 MHz. We have a particular program we wish to run. When compiled for computer A, this program has exactly 100,000 instructions. How many instructions would the program need to have when compiled for Computer B, in order for the two computers to have exactly...
Explain what has changed in CPU architecture to deal with clock rate
Explain what has changed in CPU architecture to deal with clock rate
If the rate law for the clock reaction is: Rate = k [ I-] [ BrO3...
If the rate law for the clock reaction is: Rate = k [ I-] [ BrO3 -] [H+] A clock reaction is run with the following initial concentrations: [I-] [BrO3-] [H+] [S2O32-] 0.002 0.008 0.02 0.0001 The reaction time is 28 seconds Calculate k in the rate law: Also: Rate = k [ I-] [ BrO3 -] [H+] A clock reaction is run at 19 ºC with the following initial concentrations [I-] [BrO3-] [H+] [S2O32-] 0.002 0.008 0.02 0.0001 Then...
a clock maker has 15 clock faces. each clock requires 1 face and 2 hands. If...
a clock maker has 15 clock faces. each clock requires 1 face and 2 hands. If the clock maker also has 42 hands, how many clocks can be produced? If the clock maker has only 8 hands, how many clocks can be produced?
In 1997 the US CPI was 160 and in 2019 it was 256. The CPI has...
In 1997 the US CPI was 160 and in 2019 it was 256. The CPI has base year of 1982. Use this information for the following three questions. 27. The average annual percent rate of inflation from 1997 to 2019 was closest to A. 1.2 B. 2.1 C. 3.1 D. 4.2 28. In 2019, the nominal minimum wage is $11. The real minimum wage increased over this period about how many percent per year? A. 0.01 B. 0.1 C. 1.5...
1. What is the overall reaction order for the reaction that has the rate law: Rate...
1. What is the overall reaction order for the reaction that has the rate law: Rate = k[H2] [NO]2 ? a.         zero order b.         first order c.          second order d.         third order 2. The first-order decomposition of hydrogen peroxide occurs according to the equation 2 H2O2(aq) ? 2 H2O(l) + O2(g) Using data from a concentration-time study of this reaction, which plot will produce a straight line? a.         1/[H2O2] versus time b.         ln[H2O2] versus time c.          [H2O2]2 versus time d.        ...
A processor has a clock rate of 2.5 GHz. It’s dynamic power is 80 W and...
A processor has a clock rate of 2.5 GHz. It’s dynamic power is 80 W and static power is 20 watt. It executes a certain program in 25 seconds. a. What is the power consumption if clock frequency is slowed down by 30%? b. What will be the new execution time for the program which earlier took 25 seconds after slowing down the clock as in part a? c. What is the power consumption if voltage is decreased by 15%?
We want to improve program performance by %5, we can increase clock rate but doing so...
We want to improve program performance by %5, we can increase clock rate but doing so will require 1.25 times as many clock cycles. Calculate the new clock rate? Calculate what the new clock rate needs to be to accomplish this performance improvement. Current CPU Time is 18.8 and clock rate is 3.5 GHz. CPI = 1.4 and Instruction count = 47 My answer is: New Clock Cycles = 0.357 New Clock Rate = 17.86/47*1.4 = 0.2712 Is my answer...
Stock A has a beta of 1.5, the risk-free rate is 4% and the return on...
Stock A has a beta of 1.5, the risk-free rate is 4% and the return on the market is 9%. If inflation changes by -2%, by how much will the required return on Stock A change?
It can be shown that a country’s long run unemployment rate is a function of the...
It can be shown that a country’s long run unemployment rate is a function of the finding rate, f and the separation rate, s.  The finding rate is the share of unemployed people who find a job in a given period (say a month) and the separation rate is the share of employed people who lose or leave a job in a period. The equation is UR = s/(s+f) If the separation rate is 3% and the finding rate is 50%...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT