21. Assume that CPU clock rate is 4 MHz and a program takes 200 million cycles to execute on that CPU, what is the Execution Time of this program? A. 50 seconds B. 5 seconds C. 0.5 second D. 500 seconds

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.3: Data Types
Problem 9E: (Practice) Although the total number of bytes varies from computer to computer, memory sizes of...
icon
Related questions
Question
21. Assume that CPU clock rate is 4 MHz and a program takes 200 million cycles to execute on that
CPU, what is the Execution Time of this program?
A. 50 seconds
B. 5 seconds
C. 0.5 second
D. 500 seconds
22. Consider that a program has 250 instructions:
30 instructions are Data-store and load operations(each instruction takes 3 cycles)
120 instructions are Boolean operations (each instruction takes 1 cycle)
100 instructions are Arithmetic operations (each instruction takes 3 cycles)
What is the CPI for this program?
А. 250
С. 204
В. 2.04
D. 35
Transcribed Image Text:21. Assume that CPU clock rate is 4 MHz and a program takes 200 million cycles to execute on that CPU, what is the Execution Time of this program? A. 50 seconds B. 5 seconds C. 0.5 second D. 500 seconds 22. Consider that a program has 250 instructions: 30 instructions are Data-store and load operations(each instruction takes 3 cycles) 120 instructions are Boolean operations (each instruction takes 1 cycle) 100 instructions are Arithmetic operations (each instruction takes 3 cycles) What is the CPI for this program? А. 250 С. 204 В. 2.04 D. 35
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Input devices
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr