Question: machine language 1. (2 marks) For a particular program as run on a particular system, the CPU execution time is 8 seconds, the clock rate
1. (2 marks) For a particular program as run on a particular system, the CPU execution time is 8 seconds, the clock rate is 3GHz, and the CPI is 4 . What is the total number of machine language instructions executed? 2. (2 marks) Consider a system with four classes of machine language instructions A,B, C, and D, with CPIA=2,CPIB=5,CPI=3, and CPI=4. If 50% of the executed machine language instructions for a particular program are of class A, 20\% of class B, 20% of class C, and 10% of class D, what is the CPI for this program? 3. (2 marks) Suppose that when run using a single thread, a particular program spends 20 seconds executing code that cannot be parallelized, and 280 seconds executing code that is highly parallelizable. Using Amdahl's law, give an upper bound on the speedup (ratio of old to new execution time) that might be achieved for this program by exploiting parallel execution on a highly-parallel computer with thousands of processors/cores
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
