Question: 6. Consider a serial program in two parts A and B. Part A runs 6 sec and Part B runs 3 sec. Sam discovered that
6. Consider a serial program in two parts A and B. Part A runs 6 sec and Part B runs 3 sec. Sam discovered that part A can be improved to run 2 times faster, or part B can be improved to run 3 times faster (but both parts cannot be improved at the same time). Which part should be improved to get better overall Show your work a. Part A b. PartB c. Either A or B d. Neither A nor B Note: Use the following narrative for next 3 questions. Consider two different implementation (say P1 and P2) of the same ISA Pl's clock rate is 3.9 GHz and P2's clock rate is 3 GHz. Instructions are categorized into four groups A, B, Cand D. Under P1, CPI of groupA instructions is 1, group B is 2, group C is 3, and group D is 3. Under P2, CPis of all groups are 2. An application has 1 million instructions, and 10% of those instructions belongs to group A, 20% belongs to group B. 50% belongs to group C, and 20% belongs to group D. 7. What is the global CPl for each implementation? Show your work a. CPI of P1 is 2.6 and CPI of P2 2 b. CPI of P1 is 3.9 and CPI of P2 3 c. Both CPI's are equal to (3.9+3)/2 d. Cannot be calculated B. What is the # of cycles for this app in both machine? Show your work # of Cycles, in P1 2.6 * 10,P2 2 * 10 # of Cycles, in P2 3.9 . 10 ,PI 3 10 #Of cycles in both P1 and P2-3.45 "10' Cannot be calculated a. b. C. d. 9. For the given application, which of the following is true? Show your work a. b. c. d. P1 is faster than P2 P2 is faster than P1 P1 and P2 performs same Cannot be determined
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
