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
Alecsey [184]
3 years ago
8

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

5. P2 has a 2.5 GHz clock rate and a 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 instructions per second? b. If the processors each execute a program in 10 seconds, fnd the number of cycles and the number of instructions. c. We are trying to reduce the execution time by 30of 20% in the CPI. What clock rate should we have to get this time reduction?
Computers and Technology
1 answer:
Anettt [7]3 years ago
4 0

Answer:  

See explanation

Explanation:

Given:

Processors:  

P1  

P2  

P3

Clock Rate of Processors:  

Clock rate of P1 = 3 GHz  

Clock rate of P2 = 2.5 GHz  

Clock rate of P3 = 4.0 GHz  

CPI of Processors:  

Cycles per instruction = CPI of P1 = 1.5    

Cycles per instruction = CPI of P2 = 1.0  

Cycles per instruction = CPI of P3 = 2.2

To find:  

a) Which processor has the highest performance expressed in instructions per second

Solution:

Performance = clock rate / CPI    

The performance of processor depends on instructions count and CPU time.    

As we know that    

CPU time = Instructions * Cycles Per Instruction / clock rate  

CPU time = Instructions * CPI / clock rate  

Instructions per second = Instruction count / CPU time    

As:      

CPU time = Instructions * CPI/ clock rate    

Instructions/CPU time = clock rate/CPI    

Instructions per second = clock rate / CPI

IPS = clock rate/ CPI  

Hence  

Performance = Clock rate / CPI = clock rate/ CPI  

Compute Performance of P1:  

Performance for P1 = IPS of P1 = clock rate of P1 / CPI of P1 = 3 GHz / 1.5 = 2

As we know that 1 GHz = 10⁹ Hz. So:    

Performance of P1  expressed in instructions per second is  2 x 10⁹  

Compute Performance of P2:  

Performance for P2 = IPS of P2= clock rate of P2 / CPI of P2 = 2.5 GHz / 1.0 = 2 .5  

As we know that 1 GHz = 10⁹ Hz. So:    

Performance of P2  expressed in instructions per second is  2.5 x 10⁹  

Compute Performance of P3:  

Performance for P3 = IPS of P3= clock rate of P3 / CPI of P3 = 4.0 GHz / 2.2 = 1.82  

As we know that 1 GHz = 10⁹ Hz. So:    

Performance of P3  expressed in instructions per second is 1.82 x 10⁹  

From the above computed performances of each processor it can be seen that Processor 2 (P2) has the highest performance expressed in instructions per second i.e. 2.5 x 10⁹  

b) find the number of cycles and the number of instructions.

Given:  

processors each execute a program in 10 seconds, So,  

CPU time = 10 sec  

Solution:  

Compute number of cycles:  

As we know that:  

CPU time = cycles count / clock rate   = clock cycles/clock rate  

So  

clock cycles = CPU time x clock rate  

Compute number of cycles of P1:  

clock cycles  = 10 x 3 GHz  

                    = 30

As we know that 1 GHz = 10⁹ Hz. So:    

clock cycles of P1 = 3 x 10¹⁰  

Compute number of cycles of P2:  

clock cycles  = 10 x 2.5 GHz

                    = 25  

As we know that 1 GHz = 10⁹ Hz. So:  

clock cycles of P2 = 2.5 x 10¹⁰

Compute number of cycles of P3:  

clock cycles  = 10 x 4.0 GHz  

                    = 40  

As we know that 1 GHz = 10⁹ Hz. So:    

clock cycles of P3 = 4 x 10¹⁰  

Now as we know that:  

Instructions per second = Instruction count / CPU time  

IPS = IC + CPU time

So to find number of instructions:

instruction count = Instructions per second x CPU time  

Compute number of instructions of P1:  

instructions of P1 = Instructions per second of P1 x CPU time  

                           = 2 x 10⁹  x 10  

                           = 2 x 10¹⁰  

Compute number of instructions of P2:  

instructions of P2 = Instructions per second of P2 x CPU time  

                           = 2.5 x 10⁹  x 10  

                           = 2.5 x 10¹⁰  

Compute number of instructions of P3:  

instructions of P3 = Instructions per second of P3 x CPU time  

                           = 1.82 x 10⁹  x 10  

                           = 1.82 x 10¹⁰  

c) What clock rate should we have to reduce the execution time by 30%

As we know  

CPU time = Execution time = instructions x CPI / clock rate  

We have to find new clock rate to reduce execution time by 30%  

This means we have to find:  

New Execution Time = 70% of Old Execution Time  

According to formula of Execution time:  

instructions(new) x CPI(new) / clock rate(new) = 0.7 [instructions(old) x CPI(old) / clock rate(old)]  

As the instructions(new)  = instructions(old)  

So,  

CPI(new) / clock rate(new) = 0.7 [CPI(old) / clock rate(old)]  

When trying to reduce the execution time by 30%, this leads to an increase of 20% in the CPI.  

CPI(new) = 1.2 CPI(old)  

New CPI of P1:  

CPI(new P1) = 1.2 CPI(old P1)  

                   = 1.2 x 1.5  

CPI(new P1) = 1.8  

New CPI of P2:  

CPI(new P2) = 1.2 CPI(old P2)  

                   = 1.2 x 1.0  

CPI(new P2) = 1.2  

New CPI of P3:  

CPI(new P3) = 1.2 CPI(old P3)  

                   = 1.2 x 2.2  

CPI(new P3) = 2.6  

1.2 / clock rate (new) = 0.7 / clock rate(old)  

So new clock rate is computed as:  

clock rate (new)  = (1.2 / 0.7 ) x clock rate(old)  

clock rate (new)  = 1.71 x clock rate(old)  

clock rate (new)  = 1.71 x clock rate(old)

Hence the clock rate should be increased by 71% approx.  

Now new clock rate for each processor is:  

clock rate (new) for P1 = 3 GHz x 1.71     = 5.13 GHz  

clock rate (new) for P2 = 2.5 GHz x 1.71 = 4.27 GHz

clock rate (new) for P3 = 4.0 GHz x 1.71 = 6.84 GHz

You might be interested in
TODAYS ATTENDANCE QUESTION: Why do you think it is important to be able to measure using a ruler in Technology & Engineering
Vaselesa [24]

Answer:

Because it takes precision to a lot of things in tech and Eng. We need to measure all kinds of things, like wood, metal/etc. for computers and things that we use everyday, Because our world goes around being precise about things that we need everyday, like tables and things.

Explanation:

3 0
3 years ago
Please describe how you can use the login page to get the server run two SQL statements. Try the attack to delete a record from
vekshin1
The only sure way to prevent SQL Injection attacks is input validation and parametrized queries including prepared statements. The application code should never use the input directly. ... Database errors can be used with SQL Injection to gain information about your database.
6 0
2 years ago
Just five types of pointing device,list
posledela

Answer:

five types of pointing devices

Explanation:

Ponting devices

Pointing means point something and the pointing devices are the input /peripheral devices those are used to point the pointer on the screen. We do move cursor on the screen to open the files or any icon.

There are many types of pointing devices but these are quite common which are given below

  1. Computer mouse
  2. Finger on touch screen.
  3. Joystick.
  4. Leap Motion.
  5. Light pen (pen)

1.Mouse

Mouse is most common type of input device that is used for pointing the data on the screen. We press it with our hands and keep pointing the things.

There are three types of mouse

  1. optical mouse
  2. wireless mouse
  3. trackball mouse.

2. Finger on touch screen

In this type of movement the fingers are input devices those we use to see the movement of pointer on the screen and this is most common in this century.

3.Joystick.

Joystick is another input device to point the cursor but it is mostly used in games. Children can use it smartly so it is inculcated in games usually.

4. Leap Motion

The Leap Motion (LM) controller is a latest 3D sensing device for hand posture interaction with a computer. It is having the capability sense the location of the fingers of the hands, as well as the palm position.

5.Light Pen

this is another pointing device which is mostly used to highlight and select the data on the screen.

Note: All of these above pointing devices are most common used now a days. These devices are having new  conventions day by day for the ease of user. This era is basically the era of IT ,so the use of computer must be so easy and conventional for the user so, the innovations and improvement in such devices is made side by side.

3 0
3 years ago
Proxy is a network computer that can serve as an intermediary for connecting with other computers.
Keith_Richards [23]

Answer:Protects the local network from outside access

Explanation:Proxy is a type of serves as the mediator in computer network for connecting the network with the user system. These servers are responsible for maintaining the security against any unauthorized access in the system or internet,privacy and other functions.. It helps in protecting the whole network connection by taking the control at the servers .

8 0
3 years ago
The 7-bit ASCII code for the character ‘&’ is: 0100110 An odd parity check bit is now added to this code so 8 bits are trans
Alex787 [66]

Answer

First part:

The transmitted 8-bit sequence for ASCII character '&' with odd parity will be 00100110. Here leftmost bit is odd parity bit.

Second part:

The invalid bit sequence are option a. 01001000 and d. 11100111

Explanation:

Explanation for first part:

In odd parity, check bit of either 0 or 1 is added to the binary number as leftmost bit for making the number of 1s in binary number odd.

If there are even number of 1s present in the original number then 1 is added as leftmost bit to make total number of 1s odd.

If there are odd number of 1s present in the original number then 0 is added as leftmost bit to keep the total number of 1s odd.  

Explanation for second part:

A valid odd parity bit sequence will always have odd number of 1s.

Since in option a and d,  total number of 1s are 2 and 6 i.e. even number. Therefore they are invalid odd parity check bit sequences.

And since in option b and c, total number of 1s are 5 and 7 i.e. odd numbers respectively. Therefore they are valid odd parity check bit sequences.

7 0
3 years ago
Other questions:
  • Today, air travel allows large numbers of people to move quickly over long distances. Which of the following is a likely effect
    8·1 answer
  • Python provides a special version of a decision structure known as the ________ statement, which makes the logic of the nested d
    13·1 answer
  • E-mail has made it very easy to send a message to more than one person at any time of day from just about anywhere. If you wante
    12·2 answers
  • To join a social network you create an avatar true or false
    6·2 answers
  • What will the following code display? int numbers[4] = { 99, 87 }; cout << numbers[3] << endl; a. 87 b.0 d. 34. What
    12·1 answer
  • Why should running your unit test suites not take a long time?A. Unit tests aren't that important, so less time should be spent
    5·1 answer
  • Analog computers are general purpose computers : true ? or false ?​
    8·1 answer
  • A maxillary partial denture will have a ____ connector, and the mandibular partial denture will have a ____ connector.
    15·1 answer
  • Why doesn't the ad load ?
    9·2 answers
  • What are the benefits and drawbacks of a desktop utilising virtualisation and a server?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!