Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Consider a system with only two types of machine language instructions A
and B, with CPI A = 4 and CPI B = 8. Suppose that through a hardware modification CPI A
could be deceased to 2, without any change to CPI B , at the cost of increasing the clock
cycle time by 20%. For what range of values of the fraction f A of executed instructions
of type A would the
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 2 images
Knowledge Booster
Similar questions
- Question 1: Consider following scenario for a program running on two computers A and B. Computer A Computer B Execution time = 10 S Execution time = 8 S No of clock cycles of B = 1.1XNO of clock cycles of computer A ClockRate = 2 GHz Find out the clock rate for computer B?arrow_forwardO Consider the execution of a program of 15,000 instructions by a linear pipeline processor with a clock rate of 25 Mhz. Assume that the instruction pipeline has five stages and that one instruction is issued per clock cycle. The penalties due to branch instructions and out-of sequence executions are ignored.arrow_forwardCompare compilers A and B for a program, where compiler A results in a dynamic instruction count of 6.9x10^9 and an execution time of 5 seconds, and compiler B results in a dynamic instruction count of 5.1x10^9 and an execution time of 4 seconds. a. Find the average CPI for each program, given a processor clock cycle time of 2 ns. b. If the compiled programs run on two different processors with the same execution times, what is the relative speed of the processor clocks?arrow_forward
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Consider the following pseudo-code, assuming nested subroutines and static scoping: main () { } int g = 0; int x = 9; function B(int a) { int x = a + 5; R (1); } function A (int n) { g=n; } function R(int m) { print x; x = x / 2; if (x > 1) else R (m + 1); A (m); } // body of main B (3); print g; 1. What does the program print? 2. Draw a diagram of the runtime stack when function A has just been called. For each frame, show the static and dynamic links. 3. Refer to the runtime stack, briefly explain how function A finds variable g.arrow_forwardQuestion 1: Consider following scenario for a program running on two computers A and B.Computer AExecution time = 10 SClockRate = 2 GHzComputer BExecution time = 8SNo of clock cycles of B 1.1XNo of clock cycles of computer AFind out the clock rate for computer B?arrow_forwardVidyadhar, Rodika, and Manoj write code for a system that requires 4 modules. Each module takes an exponential amount of time to complete with mean 3.0 days. Once a coder is finished with a module, he/she starts another, but only one coder can work on a module. Let {X(t), t >=0} be the CTMC describing the number of modules remaining to code. Show the rate diagram for X Show the Q matrixarrow_forward
- Question 20 Consider two different machines with two different instruction sets, both of which have a clock rate of 800 MHz. The following measurements are recorded on the two machines running a given set of benchmark programs. Instruction Type Machine A Arithmetic and logic Load and store Branch Others Machine B Arithmetic and logic Load and store Branch Others O 50 ms O 70 ms O 55.2 ms O 60 ms Instruction Count (millions) O None of them 8 4 2 4 10 8 2 4 Cycles per Instruction 1 3 4 With machine A, how long would it take to execute the program? 3 1 2 4 3arrow_forwardConsider two different implementations, M1 and M2, of the same instruction set. There arethree classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 2.0GHz and M2has a clock rate of 2.5GHz. The average number of cycles for each instruction class and their frequencies(for a typical program) are as follows:Instruction Class M1-Cycles/InstructionClass M2 -Cycles/InstructionClasss FrequencyA 1 2 60%B 3 2 30%C 4 3 10%(a) Calculate the average CPI for each machine, M1, and M2.(b) Calculate the average MIPS ratings for each machine, M1 and M2.(c) Which machine has a smaller MIPS rating? Which individual instruction class CPI do you needto change, and by how much, to have this machine have the same or better performance as themachine with the higher MIPS rating (you can only change the CPI for one of the instructionclasses on the slower machine)?arrow_forwardConsider the following functions. For each function, discuss its instruction locality. Is there good locality or bad locality? Explain why. Be precise; consider both spatial and temporal locality.arrow_forward
- Th e results of the SPEC CPU2006 bzip2 benchmark running on an AMD Barcelona has an instruction count of 2.389E12, an execution time of 750 s, and a reference time of 9650 s.> Find the CPI if the clock cycle time is 0.333 ns.> Find the SPECratio.> Find the increase in CPU time if the number of instructions of the benchmark is increased by 10% without aff ecting the CPI.> Find the increase in CPU time if the number of instructions of the benchmark is increased by 10% and the CPI is increased by 5%.> Find the change in the SPECratio for this change.> Suppose that we are developing a new version of the AMDBarcelona processor with a 4 GHz clock rate. We have added some additional instructions to the instruction set in such a way that the number of instructions has been reduced by 15%. Th e execution time is reduced to 700 s and the new SPECratio is 13.7. Find the new CPI.> This CPI value is larger than obtained in 1.11.1 as the clock rate was increased from 3 GHz to 4…arrow_forward??arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY