Computer Science, asked by 20bit154, 5 hours ago

A given application written in Java runs 15 seconds on a desktop processor. A new Java compiler is released that requires only 0.6 as many instructions as the old compiler. Unfortunately, it increases the CPI by 1.1. How fast can you expect the application to run using this new compiler?

Answers

Answered by adityakumavat905
2

Answer:

A: 15 seconds = InsA * CPIA * ClockRate ClockRate = 15 seconds / (InsA * CPIA)

B: TimeB = (0.6*InsA) * (1.1*CPIA) * ClockRate TimeB = (0.6*InsA) * (1.1*CPIA) * 15 seconds / (InsA * CPIA)

TimeB = 0.6*1.1*15 seconds = 9.9 seconds

Explanation:

.

.

.

.

I HOPE ITS HELPFUL FOR YOU

Answered by Harshitm077
0

Answer:

Only 9.9 seconds would be expected in this application in order to run this, via this newest Java compiler as compared to old compiler.

Explanation:

Let the number of instruction be 'x'.

=  x question ---- 15 sec

= 1 question ----- 15/x sec

Now the number of instruction reduces to 0.6 of original so

=  0.6x = new instructions number

Again, time per instruction increases to 1.1, so

New time = 1.1 * 15/x

Total time = 1.1 * 15/x * 0.6 * x = 9.9 seconds

For more question and answers - https://brainly.com/question/14603090

https://www.transtutors.com/questions/cpu-performance-207979.htm

Similar questions