1. Consider the two computers (MI and M2) and program (PI), and additional measures are made: Program PI Program PI Time on MI 2.0 seconds Time on M2 1.5 seconds Instructions executed on M2 6 x 10^9 Instructions executed on MI 5 x 10^9 Find the instruction execution rate (instructions per second) for each computer when running program PI. [2 pts] 2. Consider three different processors PI, P2, and P3 executing the same instruction set. Processor PI P2 P3 Clock Rate 3 GHz 2.5 GHz 4 GHz Clock cycles Per Instruction 1.5 1.0 2.2 [4 pts] a. Which processor has the highest performance expressed in instructions per second? b. If the processor PI executes a program in 10 seconds, find the number of cycles and the number of instructions. Consider only PI. 3. Consider the instructions that can be divided into four classes according to the CPI (class A, B, C, and D). A processor PI has a clock rate of 2 GHz. The average number of cycles for each instruction class for PI is as follows: Class A B C D CPI on PI 1 2 3 3 Given a program with a dynamic instruction count of 1.0 x 10^6 instructions divided into classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D. a. Find the clock cycles required. b. Find the execution time of instructions. [4 pts]
Added by Anthony A.
Close
Step 1
The program P takes 2.0 seconds to execute on MI (Machine I). Show moreā¦
Show all steps
Your feedback will help us improve your experience
Shreya Jain and 67 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
1.5 [4] <1.6> Consider three different processors Pl, P2, and P3 executing the same instruction set. Pl has a GHz clock rate and CPI of 15. P2 has a 2.5 GHz clock rate and CPI of 1.0. P3 has a 4.0 GHz clock rate and a CPI of 2.2. Which processor has the highest performance expressed in instructions per second? b. If the processors each execute the program in 10 seconds, find the number of cycles and the number of instructions: We are trying to reduce the execution time by 309 but this leads to an increase of 209 in the CPI. What clock rate should we have to get this time reduction?
Animesh R.
Consider two different implementations of the same instruction set architecture. Th e instructions can be divided into four classes according to their CPI (class A, B, C, and D). P1 with a clock rate of 2.5 GHz and CPIs of 1, 2, 3, and 3, and P2 with a clock rate of 3 GHz and CPIs of 2, 2, 2, and 2. Given a program with a dynamic instruction count of 1.0E6 instructions divided into classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D, which implementation is faster?a. What is the global CPI for each implementation?b. Find the clock cycles required in both cases.
Akash M.
A program runs in 10 seconds on computer A, which has a 2 GHz clock. We are trying to help a computer designer build a computer, B, which will run this program in 8 seconds. The designer has determined that a substantial increase in the clock rate is possible, but this increase will affect the rest of the CPU design, causing computer B to require 1.2 times as many clock cycles as computer A for this program. What clock rate should we tell the designer to target? (2 Mark)
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD