Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the execution time for this program: A Program is running on a specific machine with the following parameters: Program 1 Program 2 Program

What is the execution time for this program:

A Program is running on a specific machine with the

following parameters:

Program 1

Program 2

Program 3

Total instruction count

15,000,000 instructions =15 x106

1,000,000 Instruction

10,000,000 Instruction

Average CPI for the program

4 cycles/instruction

5.5 cycle/instruction

2 cycle/instruction

CPU clock rate

150 MHz = 150 x 106Hz

Clock Cycle Time : 10 ps.

1 GHz

the execution time

15x106 x 4 x 1/150 x 10-6 = 1 x 4 x 15/150 = 4x1/10=4/10=0.4 second

1x106 x 5.5 x 10 =55

CPU time = Instruction count x CPI x Clock cycle

MIPS EXAMPLE

Class

A

B

C

D

CPI for class

4

7

2

3

Instruction count in Millions

IC in sequence 1

5

2

3

6

IC in sequence 2

8

6

1

4

Assume the clock cycle time = 10ns find CPU time and MIPS for each sequence?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions