1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Inessa [10]
4 years ago
11

Consider two different implementations of the same instruction set architecture. the instructions can be divided into four class

es according to their cpi (classes 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 is faster: p1 or p2?
Mathematics
2 answers:
Lelechka [254]4 years ago
8 0
Class A: 10^5 instr. Class B: 2 x 10^5 instr. Class C: 5 x 10^5 instr. Class D: 2 x 10^5 instr.
Time = no instr x CPI/ Clock rate
Total time P1 = (10^5 + 2 x 10^5 x 2 + 5 x 10^5 x 3 + 2 x 10^5 x 3) / (2.5 x 10^9) = 10.4 x 10^-4s
Total Time P2 = (10^5 x 2 + 2 x 10^5 x 2 + 5 x 10^5 x 2 + 2 x 10^5 x 2) / (3 x 10^9) = 6.66 x 10^-4s
CPI (P1) = 10.4 x 10^-4 x 3 x 10^9/10^6 = 2.6
CPI (P2) = 6.66 x 10^-4 x 3 x 10^9/10^6 = 2.0
Therefore, P2 is faster.
Reptile [31]4 years ago
8 0
<span>p2 is the faster processor. Since we're executing 1 million instructions, let's first determine how many instructions of each class we execute. Just multiply 1 million by the percentage of each instruction class. Class a = 0.10 * 1,000,000 = 100,000 Class b = 0.20 * 1,000,000 = 200,000 Class c = 0.50 * 1,000,000 = 500,000 Class d = 0.20 * 1,000,000 = 200,000 Now let's see how many clock cycles p1 takes to execute the program. This is the sum of the product of each instruction class and the clock cycles per instruction. 100,000 * 1 + 200,000 * 2 + 500,000 * 3 + 200,000 * 3 = 100,000 + 400,000 + 1,500,000 + 600,000 = 2,600,000 And the number of clock cycles for p2: 100,000 * 2 + 200,000 * 2 + 500,000 * 2 + 200,000 * 2 = 200,000 + 400,000 + 1,000,000 + 400,000 = 2,000,000 Finally, how long does each program actually take to execute? Just divide by the clock frequency. p1: 2,600,000 / 2,500,000,000 = 0.00104 seconds p2: 2,000,000 / 3,000,000,000 = 0.000666666666666667 seconds And p2 is significantly faster than p1. In fact, p2 would still be faster than p1 even if the clock speeds were reversed with p1 being 3 GHz and p2 being 2.5 GHz. But with p2 having that higher clock speed, that's just icing on the cake.</span>
You might be interested in
Write an equation for 15 is 15% of what number? Use x for your variable
iVinArrow [24]

Reading through the problem, we have "15 is",

that's "15 =", 15%, 15/100, "of", times, "what number", x.

So our equation reads 15 = 15/100 · x.

5 0
3 years ago
Choose the solution for the equation 3(p+8) = 2(2p-1)
artcher [175]

Answer:

b) p=26

Step-by-step explanation:

3p + 3 · 8 = 2 ·2p  - 2

3p + 24  = 4p - 2

p = 26

4 0
3 years ago
Which formula would you use to determine how much paint would be needed to paint the inside of a circular shape diameter of 3 fe
elena55 [62]
 <span>Pi * r^2 (Pi multiplied by the radius of the circle (squared) 
(It's working out the area of the circle 
So Pi * 1.5^2</span>
4 0
3 years ago
Can the leaves of an ordered rooted tree have the universal address 1.1, 1.2.1, 1.2.2, 1.2.3, 2.1, 2.2.1, 2.3.1, 2.3.2, 2.4.2.1,
vovikov84 [41]
<span>A pine is just such a tree.</span>
6 0
4 years ago
Read 2 more answers
Help me with this please!!
enyata [817]

Answer:

4

Step-by-step explanation:

3x + 8 = 5x ( inscribed angles on same arc are equal)

5x - 3x = 8

2x = 8

x = 8/ 2

x = 4

Hope it will help :)❤

7 0
3 years ago
Read 2 more answers
Other questions:
  • How to find x in a plane
    12·1 answer
  • What word describes the equal shares of the shape
    15·1 answer
  • Is 17 heartbeats in 15 seconds equivalent to 68 heartbeats in 60 seconds
    11·2 answers
  • 9 ones 2 thousands -3ones
    13·1 answer
  • How can I identify the shaded part of 100 grid as a fraction and a decimal?
    9·1 answer
  • A fair die is rolled once. Let A be the event of rolling an even number, and let B be the event of rolling a number greater than
    8·1 answer
  • ESchool
    6·1 answer
  • Let's assume a typical New Zealand farmer raising sheep owns 250 hectares and averages about 10 livestock units per hectare. If
    15·1 answer
  • Alanna is painting a border on a wall. The border consists of kite-shaped figures as shown.
    12·1 answer
  • The number 12.5 can be classified as:
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!