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
ipn
2 months ago
5

Consider the two computers A and B with the clock cycle times 100 ps and 150 ps respectively for some program. The number of cyc

les per instruction (CPI) for A and B are 2.0 and 1.0 respectively for the same program. Which computer is faster and how much? a) A is 1.33 times faster than B b) Bis 1.22 times faster than A c) A is 1.23 times faster than B d) B is 1.33 times faster than A
Computers and Technology
2 answers:
ivann1987 [1K]2 months ago
7 0

Answer:

Option d): Computer B is 1.33 times faster than A

Given:

Clock cycle times: t_{A} = 100 ps

t_{A} = 150 ps

Cycles per instruction (CPI): n_{A} = 2.0

n_{B} = 1.0

Solution:

Let the number of instructions be I.

CPU cycles for A: f_{A} = 2.0 × I

CPU cycles for B: f_{B} = 1.0 × I

The CPU time formula is:

CPU time, T = CPU clock cycle\times clock time

T_{A} = f_{A}\times t_{A} = 2.0 I\times 100 = 200 I ps

T_{B} = f_{B}\times t_{B} = 1.0 I\times 100 = 150 I ps

This shows B runs faster than A.

Calculating performance ratio:

\frac{Performance of A}{Performance of B} = \frac{T_{A}}{T_{B}}

\frac{Performance of A}{Performance of B} = \frac{200}{150}

B's performance is 1.33 times greater than A's.

oksian1 [950]2 months ago
3 0

The clock cycle duration for Computer A is 100ps

Each instruction requires 2 cycles (CPI = 2)

So, the time to execute one instruction is Clock cycle time × CPI = 100 × 2 = 200 ps

Computer B's clock cycle time equals 150ps

CPI for Computer B is 1

Therefore, the time per instruction is 150 × 1 = 150 ps

Since Computer B takes less time per instruction compared to Computer A, it is the faster machine.

The difference in speed per instruction is 200 ps - 150 ps = 50 ps advantage for Computer B

You might be interested in
What is a commonly publicized password sql injection string?
Rzqust [1037]
The phrases "or 1=1" and "or ''=''" are typical examples used to manipulate an SQL WHERE clause into evaluating as true.

Consequently, if you type in <span>' or ''=' as your password, you can authenticate if the query would be:

</span><span>select username,pass from users where username='you' and password='' or ''='<span>' limit 0,1;</span></span>
7 0
1 month ago
Find true or false. A hacker is hacking software with access in sensitive information from your computer​
Harlamova29_29 [1022]
IT'S CORRECT!! I LOOKED IT UP
7 0
1 month ago
Write a class named Taxicab that has three **private** data members: one that holds the current x-coordinate, one that holds the
amid [951]

Response:

Refer to the explanation

Details:

class Taxicab():

def __init__(self, x, y):

self.x_coordinate = x

self.y_coordinate = y

self.odometer = 0

def get_x_coord(self):

return self.x_coordinate

def get_y_coord(self):

return self.y_coordinate

def get_odometer(self):

return self.odometer

def move_x(self, distance):

self.x_coordinate += distance

# increase the odometer with the absolute distance

self.odometer += abs(distance)

def move_y(self, distance):

self.y_coordinate += distance

# increase odometer with the absolute distance

self.odometer += abs(distance)

cab = Taxicab(5,-8)

cab.move_x(3)

cab.move_y(-4)

cab.move_x(-1)

print(cab.odometer) # will output 8 3+4+1 = 8

7 0
2 months ago
To what extent are the following computer systems instances of artificial intelligence:
oksian1 [950]

Answer: Scanners used in supermarkets for barcodes and voice-activated phone menus are not examples of artificial intelligence.

Explanation:

(a) Supermarket barcode scanners can read codes, yet they lack the capability to employ machine learning techniques for learning patterns within the codes. Machine learning is a crucial aspect of artificial intelligence (AI), thus indicating they do not qualify as instances of AI. Likewise, voice-activated menus can only present options and do not carry out any complex tasks.

In contrast, web search engines and internet routing algorithms demonstrate dynamic and intelligent capabilities in processing and delivering information to users.

Hence, these are considered examples of AI.

8 0
2 months ago
The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exercise, you are going to simula
Amiraneli [1052]

Answer:

Coins c1 = new Coins (4, 3, 2, 1);

c1.bankValue();

c1.addQuarter();

c1.addQuarter();

c1.addDime();

c1.addDime();

c1.addPenny();

c1.bankCount();

c1.bankValue();

Explanation:

8 0
26 days ago
Other questions:
  • Which of the following is true of how computers represent numbers?
    9·2 answers
  • 3. Megan and her brother Marco have a side business where they shop at flea markets, garage sales, and estate
    9·1 answer
  • A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule als
    12·1 answer
  • Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, a
    10·1 answer
  • Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which a
    8·1 answer
  • The piston engine uses the ________ to convert the reciprocating motion of the piston into rotary motion.
    13·1 answer
  • Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times
    8·1 answer
  • Write a MATLAB function named lin_spaced_vector with two inputs and one return value. The first input will be a single real numb
    7·1 answer
  • Write a program to read-in a sequence of integers from the keyboard using scanf(). Your program will determine (a) the largest i
    8·1 answer
  • A business wants to centralize its administrative tasks. At the same time, it wants the existing systems to manage and sustain t
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!