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
Sergeu [11.5K]
4 years ago
12

Consider three different processors P1, P2, and P3 executing the same instructions set. P1 has a 3 GHz clock rate and a CPI of 1

.5. P2 has a 2.5 GHz and CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2.
a. which processor has the highest performance expressed in instruction per second?
b. If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions.
c. We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction.
Computers and Technology
1 answer:
sveta [45]4 years ago
5 0

Answer:

Answer explained below

Explanation:

The time taken by a processor of speed n Hz to finish one cycle is 1/n seconds. CPI is Cycles Per Instruction which indicates the number of cycles taken by an instruction to finish execution.

For P1:

clock rate = 3.5GHz which means time for one cycle = 1/(3.5 x 109) = 0.285 ns

CPI = 1.5

which means time taken to complete one instruction = 0.285 x 1.5 = 0.428 ns

Number of instructions executed in one second = 2.33 x 109 instructions

For P2:

clock rate = 3.0GHz which means time for one cycle = 1/(3.0 x 109) = 0.333 ns

CPI = 1.0

which means time taken to complete one instruction = 0.333 x 1.0 = 0.333 ns

Number of instructions executed in one second = 3 x 109 instructions

For P3:

clock rate = 4.0GHz which means time for one cycle = 1/(4.0 x 109) = 0.25 ns

CPI = 2.2

which means time taken to complete one instruction = 0.25 x 2.2 = 0.55 ns

Number of instructions executed in one second = 1.82 x 109 instructions

a. From the above calculations we can see that processor P2 has the highest performance as it executes the highest number of instructions per second.

b. All the processors execute one program in 10 seconds. Number of instructions executed in 10 seconds = number of instructions in one second x 10. Number of cycles = number of instructions x CPI

For P1:

Number of instructions executed in one program =  2.33 x 1010 instructions

Number of cycles taken by a program = 2.33 x 1010 instructions x 1.5 CPI = 3.5 x 1010cycles

For P2:

Number of instructions executed in one program =  3.0 x 1010 instructions

Number of cycles taken by a program = 3.0 x 1010 instructions x 1.0 CPI = 3.0 x 1010cycles

For P3:

Number of instructions executed in one program =  1.82 x 1010 instructions

Number of cycles taken by a program = 1.82 x 1010 instructions x 2.2 CPI = 4.0 x 1010cycles

c.

Assuming the CPI should be same, To reduce execution time by 30% the processor has to execute the number of instructions it executes in 10 seconds in 7 seconds.

For P1:

Number of instructions executed in one program =  2.33 x 1010 instructions

Number of instructions executed in one second = 2.33 x 1010 / 7 = 3.33 x 109 instructions

this means one instruction is executed in 0.3ns which implies one cycle takes 0.3/1.5 = 0.2 ns

The clock speed should therefore be, 5.0GHz

For P2:

Number of instructions executed in one program =  3.0 x 1010 instructions

Number of instructions executed in one second = 3.0 x 1010 / 7 = 4.28 x 109 instructions

this means one instruction is executed in 0.23ns which implies one cycle takes 0.23/1.0 = 0.23 ns

The clock speed should therefore be, 4.28GHz

For P3:

Number of instructions executed in one program =  1.82 x 1010 instructions

Number of instructions executed in one second = 1.82 x 1010 / 7 = 2.6 x 109 instructions

this means one instruction is executed in 0.385ns which implies one cycle takes 0.385/1.5 = 0.26 ns

The clock speed should therefore be, 3.9GHz

You might be interested in
Give the an example of the following .<br>a.)typing software<br>​
IceJOKER [234]
Max Type Pro

Stamina Typing Tutor.
3 0
3 years ago
Read 2 more answers
Which type of image is composed of lines, curves, and fills?
Nataliya [291]
<h2>Answer: Vectors</h2>

Explanation:

4 0
3 years ago
How to do c++ programming
Kipish [7]

Answer:

Explanation:

learn by picking up courses and books

but if you don't have any prior programming experience, i recommend you DON'T do c++ first, but instead use an easier language to get the hang of it, like Python.

8 0
3 years ago
What learning about computer
uysha [10]

<em>Computer-based learning (CBL) is the term used for any kind of learning with the help of computers. Computer-based learning makes use of the interactive elements of the computer applications and software and the ability to present any type of media to the users.</em>

8 0
3 years ago
If a song is public domain, that means:
DaniilM [7]

Answer: C

Explanation:

Public Domain mean public owns it and it don’t belong to an individual author or artist. Anyone can use a public domain without obtaining permission but can’t ever own it

4 0
3 years ago
Other questions:
  • What is the name of the process of heat transfer in which heat is transmitted through light waves?
    7·2 answers
  • Sarah is entering weekly sales data for week 37 of the current year; however, when she moves down to thecells where she needs to
    8·2 answers
  • A student is helping a friend with a home computer that can no longer access the Internet. Upon investigation, the student disco
    15·1 answer
  • when a user has the requirement to stay connected 100% of the time as they move throughout the WLAN coverage area, what are they
    13·1 answer
  • 24. A key on a keyboard of a computer
    12·1 answer
  • How do you think computers have helped to improve documentation, support and services within the healthcare industry.
    5·2 answers
  • I need help with yes lol please and thank you
    15·2 answers
  • Complete the sentence about entering and editing data in a cell in a spreadsheet.
    13·1 answer
  • For a business that is properly using a social media information system, the system can
    13·1 answer
  • The term embedded system refers to any device that includes a computer chip, but that is not a general-purpose workstation, desk
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!