answer.
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
kobusy
1 month ago
15

A common fallacy is to use MIPS (millions of instructions per second) to compare the performance of two different processors, an

d consider that the processor with the largest MIPS has the largest performance. Check if this is true for P1 and P2.
Computers and Technology
1 answer:
amid [880]1 month ago
3 0

The provided question is lacking details. It can be retrieved from search engines. However, please see the full question below:

Question

It points out a mistake in using a part of the performance equation as a measure of performance. For example, examine these two processors. P1 operates at a clock frequency of 4 GHz, has an average CPI of 0.9, and needs to execute 5.0E9 instructions. P2 runs at 3 GHz, with an average CPI of 0.75, needing to execute 1.0E9 instructions. 1. A common misunderstanding is assuming that the processor with the highest clock rate has the best performance. Determine if this holds true for P1 and P2. 2. Another misconception is that the processor with the greater number of executed instructions necessarily has a longer CPU time. If processor P1 processes 1.0E9 instructions and both processors have unchanged CPI values, calculate how many instructions P2 can complete in the same duration that P1 uses to execute 1.0E9 instructions. 3. A frequent error is to use MIPS (millions of instructions per second) to evaluate the performance of different processors, believing that the one with the highest MIPS is the best. Verify whether this applies to P1 and P2. 4. MFLOPS (millions of floating-point operations per second) is another common metric, defined as MFLOPS = No. FP operations / (execution time x 1E6), but it suffers from the same issues as MIPS. Assuming 40% of the instructions executed on both P1 and P2 are floating-point instructions, calculate the MFLOPS values for the programs.

Answer:

(1) We apply the following formula:

                                         CPU time = number of instructions x CPI / Clock rate

By substituting 1 GHz = 10⁹ Hz, we find:

CPU time₁ = 5 x 10⁹ x 0.9 / 4 GHz

              = 4.5 x 10⁹ / 4 x 10⁹ Hz = 1.125 s

and,

CPU time₂ = 1 x 10⁹ x 0.75 / 3 GHz

                    = 0.75 x 10⁹ / 3 x 10⁹ Hz = 0.25 s

This shows that P2 is significantly faster than P1 because CPU₂ is shorter than CPU₁

(2)

Determine the CPU time of P1 using (*)

CPU time₁ = 1 x 10⁹ x 0.9 / 4 GHz

                  = 0.9 x 10⁹ / 4 x 10⁹ Hz = 0.225 s

Next, we need the count of instructions₂ so that CPU time₂ = 0.225 s, applying (*) with clock rate₂ = 3 GHz and CPI₂ = 0.75

Thus, instruction count₂ x 0.75 / 3 GHz = 0.225 s

Consequently, instruction count₂ = 0.225 x 3 x 10⁹ / 0.75 = 9 x 10⁸

Thus, P1 can handle more instructions than P2 within the same time frame.

(3)

We remember that:

MIPS = Clock rate / CPI x 10⁶

 So, MIPS₁ = 4 GHz / 0.9 x 10⁶ = 4 x 10⁹ Hz / 0.9 x 10⁶ = 4444

MIPS₂ = 3 GHz / 0.75 x 10⁶ = 3 x 10⁹ / 0.75 x 10⁶ = 4000

This indicates that P1 has a higher MIPS

(4)

 Now we note that:

MFLOPS = FLOPS Instructions / time x 10⁶

              = 0.4 x instructions / time x 10⁶ = 0.4 MIPS

Accordingly,

                    MFLOPS₁ = 1777.6

                    MFLOPS₂ = 1600

Again, P1 boasts a greater MFLOPS

You might be interested in
An array subscript can be an expression, but only as long as the expression evaluates to what type?
ivann1987 [985]
An array subscript can only be an expression that evaluates to an integer.
6 0
22 days ago
Implement the function couple, which takes in two lists and returns a list that contains lists with i-th elements of two sequenc
zubka84 [1016]

Answer:

couple.py

def couple(s1,s2):

  newlist = []

  for i in range(len(s1)):

      newlist.append([s1[i],s2[i]])

  return newlist

s1=[1,2,3]

s2=[4,5,6]

print(couple(s1,s2))

enum.py

def couple(s1,s2):

  newlist = []

  for i in range(len(s1)):

      newlist.append([s1[i],s2[i]])

  return newlist

def enumerate(s,start=0):

  number_Array=[ i for i in range(start,start+len(s))]

  return couple(number_Array,s)

s=[6,1,'a']

print(enumerate(s))

print(enumerate('five',5))

Explanation:

7 0
1 month ago
Imagine you were using some of our pixelation tools to create an image and you posted it online for your friends to see - but, a
Natasha_Volkova [964]

Respuesta:

Necesito establecer una LICENCIA CREATIVE COMMONS

Explicación:

Basado en el escenario que se presenta, lo que requeriría modificar para que el escenario desde la introducción sea aceptable es desarrollar una LICENCIA CREATIVE COMMONS. Mi razón para implementar este tipo de licencia es para permitir que la gente o el público utilice mi trabajo libremente o cuente con una licencia gratuita para el uso de mis creaciones, facilitando a otros vender sus productos que incluyan mi trabajo sin restricciones.

3 0
1 month ago
Write a function solution that returns an arbitrary integer which is greater than n.
Harlamova29_29 [971]

Answer:

public static int greaterThanInt(int n) {

       return n + 10;

   }

Explanation:

This Java method is quite straightforward. It takes an integer n as an argument and will return n+10 because the requirement is to provide an integer that exceeds n; adding any integer to n will fulfill that condition.

A complete Java program that calls this method is presented below:

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Please enter an integer");

       int n = in.nextInt();

       int greaterInt = greaterThanInt(n);

       System.out.println("You entered " + n + ", " + greaterInt + " is larger than it");

   }

   public static int greaterThanInt(int n) {

       return n + 10;

   }

}

4 0
1 month ago
6. Write pseudo code that will perform the following. a) Read in 5 separate numbers. b) Calculate the average of the five number
zubka84 [1016]

Answer:

Pseudo CODE

a)

n= Input “Enter 5 integer values”

b)

sum=0.0

For loop with i ranging from 0 to 5

Inside loop sum=n[i]+sum

Outside loop avg=sum/5

Print avg

c)

small=n[0] # assume initial number is the smallest

large=n[0] # assume initial number is the largest

For loop with i ranging from 0 to 5

Inside loop if n[i]<small # check if current number is smaller than small

Inside if Then small=n[i]

Inside loop if n[i]>large # check if current number is larger than large

Inside if then large=n[i]

Print small

Print large

d)

print avg

print small

print large

8 0
1 month ago
Other questions:
  • Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two
    12·1 answer
  • Until 2015, each new Roblox user automatically had one friend. What was he called?
    12·2 answers
  • Write a statement that reads a floating point value from standard input into temperature. Assume that temperature. has already b
    6·1 answer
  • PLEASE HELP!!~~
    7·1 answer
  • When a CPU executes instructions as it converts input into output, it does so with
    12·1 answer
  • Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual
    6·1 answer
  • Which of the following is true? a. Pseudocode is used to describe an algorithm. b. Pseudocode is not an actual computer programm
    11·1 answer
  • What is the other name designated to a game master of multiplayer online games (MMOs)?
    11·2 answers
  • James is an intern in a film production company. On his first day, James’ boss, Monica, tells him, “Before anything else, let me
    9·1 answer
  • Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!