Question: A program contains 4 types of instructions - addition, subtraction, multiplication, and division. Addition takes 5 clock cycles, subtraction also takes 8 clock cycles, multiplication

A program contains 4 types of instructions - addition, subtraction, multiplication, and division. Addition takes 5 clock cycles, subtraction also takes 8 clock cycles, multiplication takes 10 clock cycles, and division takes 15 clock cycles. In this program, 20% of the instructions are addition, 25% of the instructions are subtraction, 25% of the instructions are multiplication, and the rest of the instructions are division.
1. What is the Clocks Per Instruction (CPI)?(3 points)
2. The program above takes 20 seconds to run on a 2.4 GHz processor. How many instructions the program has? (4 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!