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
Write an SQL statement to display for every restaurant the name of the restaurant (where the name of the restaurant consists of
Rainbow [258]

Using the knowledge in computational language in SQL it is possible to write the code that display for every restaurant the name of the restaurant  and for every category of menu item its description.

<h3>Writting the code:</h3>

<em>INSERT INTO Dish </em><em>Values</em><em>(13, 'Spring Rolls', 'ap');</em>

<em>INSERT INTO Dish Values(15, 'Pad Thai', 'en'); </em>

<em>INSERT INTO Dish Values(16, 'Pot Stickers', 'ap');    </em>

<em>INSERT INTO Dish Values(22, 'Masaman Curry', 'en');   </em>

<em>INSERT INTO Dish Values(10, 'Custard', 'ds');   </em>

<em>INSERT INTO Dish Values(12, 'Garlic Bread', 'ap');    </em>

<em>INSERT INTO Dish Values(44, 'Salad', 'ap');    </em>

<em>INSERT INTO Dish Values(07, 'Cheese Pizza', 'en');   </em>

<em>INSERT INTO Dish Values(19, 'Pepperoni Pizza', 'en');    </em>

<em>INSERT INTO Dish Values(77, 'Veggie Supreme Pizza', 'en');</em>

<em />

<em>INSERT </em><em>INTO MenuItem Values(0, 0, 13, 8.00);</em>

<em>INSERT INTO </em><em>MenuItem </em><em>Values(1, 0, 16, 9.00);</em>

<em>INSERT INTO MenuItem Values(2, 0, 44, 10.00);</em>

<em>INSERT INTO MenuItem Values(3, 0, 15, 19.00);</em>

<em>INSERT INTO MenuItem Values(4, 0, 22, 19.00);</em>

<em>INSERT INTO MenuItem Values(5, 3, 44, 6.25);</em>

<em>INSERT INTO MenuItem Values(6, 3, 12, 5.50);</em>

<em>INSERT INTO MenuItem Values(7, 3, 07, 12.50);</em>

<em>INSERT INTO MenuItem Values(8, 3, 19, 13.50);</em>

<em>INSERT INTO MenuItem Values(9, 5, 13, 6.00);</em>

<em>INSERT INTO MenuItem Values(10, 5, 15, 15.00);</em>

<em>INSERT INTO MenuItem Values(11, 5, 22, 14.00);</em>

See more about SQL atbrainly.com/question/13068613

#SPJ1

4 0
1 year ago
If I make a Zoom Meeting, would you join it?
boyakko [2]

Most likely, yeah lol.

3 0
3 years ago
Read 2 more answers
Which OS function does a CLI fulfill? A User interface B Running applications C Hardware interface D Booting
-Dominant- [34]

Answer:

User Interface

Explanation:

3 0
3 years ago
Arturo is a security professional. He is strengthening the security of an information system. His design ensures that if a field
Cloud [144]

Arturo is attempting to protect the database (data) of an information system (IS).

<h3>What is an information system?</h3>

An information system (IS) can be defined as a set of computer systems, that is typically used to collect, store, and process data, as well as the dissemination of information, knowledge, and the distribution of digital products.

In Cybersecurity, there are two (2) main techniques that can be used to check data when inputted in an information system (IS) and these include:

  • Verification
  • Validation

Data validation is a type of check which is primarily performed by a software program (application) to make sure that the data which is entered into an information system (IS) is allowable and sensible.

This ultimately implies that, any data that is not allowed or sensible are rejected and discarded by the computer system.

In conclusion, we can deduce that Arturo is attempting to protect the database (data) of an information system (IS).

Read more on data here: brainly.com/question/25885448

3 0
2 years ago
Implementing information systems has economic, organizational, and behavioral effects on firms. Information technology, especial
soldi70 [24.7K]

Answer: Economic

Explanation: Economic impact can be explained as the effect of a certain action, policy or action on the economy of an organization, country measured in terms of business revenue, gain or profit, impact on manufactory or production cost, inflation, monetary value and so on.

In the scenario above, the economic effect or impact of implementing information technology is highlighted in terms of lower cost of market participation, shrinkage in size of firms due to external participation and so on.

5 0
3 years ago
Other questions:
  • Which software application should be used to create a sales pitch to a group of people? Database Email Presentation Word process
    9·1 answer
  • If a security officer is non-commissioned officer, he can carry a baton on duty if he went through a training class
    8·1 answer
  • Host to IP address lookup and its reverse lookup option are very important network services for any size network. It is also how
    14·1 answer
  • Design and implement an application that reads a sequence of up to 25 pairs of names and postal (ZIP) codes for individuals. Sto
    9·1 answer
  • What are the ethical implications of online social media after someone has died
    8·2 answers
  • Fatal error: Class 'Drush\Commands\DrushCommands' not found in /Users/amy/testsite/Sites/acquia dev desktop/fresh-install/module
    7·1 answer
  • Match the desired outcome to the appropriate action.
    6·1 answer
  • Being a part of an organization or giving back to the community is which rewards of work factor?
    6·1 answer
  • What is the primary way that social networks work? Multiple Choice providing a security system for communication online connecti
    5·1 answer
  • Which version of HTML provides the lowest common denominator of HTML tags
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!