Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Topic Video
Question
Suppose we have two implementations:
Machine A has a clock cycle time of 10 ns. and a CPI of 2.0. Machine B has a
clock cycle time of 20 ns. and a CPI of 1.2. Which machine is faster for this
program, and how much in percentage?
Consider that the total instruction in the program is 1x10^9 or about 1,000,000,000 set of instructions since the cycle time is running in nanoseconds.
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 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Consider following scenario for a program running on two computers A and B. Computer A Execution time = 10 S ClockRate = 2 GHz Computer B Execution time = 8S No of clock cycles of B 1.1XNo of clock cycles of computer A Find out the clock rate for computer B?arrow_forwarda. We are given a system with 2 levels of cache, L1 and L2. The CPU directly interfaces to the L1 cache, which has a hit time of 1 ns and a hit rate of 0.4. On misses, the L1 accesses the L2 cache, which has an access time of 20 ns, and a hit rate of 0.8. If the L2 misses, it accesses the main memory, which has an access time of 100 ns. Determine the average memory access time, of the CPU to the memory hierarchy.b. A cache is inserted between the main memory, which is 32 MB, and the CPU. This cache can accomodate 64 blocks and each block can accomodate 128 words (2B per word). How many possible blocks can be stored in one cache block if it is a direct-mapped cache?arrow_forwardQuestion 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_forward
- Consider a processor that has a 2 GHz clock rate and a CPI of 1.5. If the processor executes a program in 10 seconds, what is the number of clock cycles that will elapse in that time?arrow_forwardQuestion 17 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 60 ms O 70 ms None of them 50 ms Instruction Count (millions) O 55.2 ms 8 4 2 4 10 8 2 4 Cycles per Instruction 1 3 4 3 With machine B, how long would it take to execute the program? 1 2 4 3arrow_forwardWhat is the physical address of this instruction Source operand of MOV BL, [SI+ BP - 9H], If you know that (ES) = 1A00H, (DS) = 4200H, (SS) = DOOOH, (BX) = 0200H . (BP) = 1000H, (SP) = 1020H, (SI) = 0400H, (DI) = 0300 Harrow_forward
- Given a program with 100 instructions: 35 instructions are add (each take 1 cycle) 25 instructions are loads (each take 2 cycles), 15 instructions are stores (each take 2 cycles) and 25 instructions are branches (each takes 3 cycles). What is the average CPI for this program? Select one: O a. 1.7 O b. 1.9 O c. 2.0 O d. 1.8 O e. Nonearrow_forwardWe are given three (primitive) processes P1, P2, and P3 with shared integer variable x and local registers r1, r2 and r3. The program of process Pi is as follows: for k := 1 to 10 do { ri := x ri := ri + 1 x := ri } That is, Pi executes ten times the assignment x := x + 1. Consider now the parallel program P = P1 || P2 || P3 with x initially being 0. Does P have an execution that halts with the terminal value x = 2? Justify your answerarrow_forwardConsider a system with only two types of machine language instructions Aand B, with CPI A = 4 and CPI B = 8. Suppose that through a hardware modification CPI Acould be deceased to 2, without any change to CPI B , at the cost of increasing the clockcycle time by 20%. For what range of values of the fraction f A of executed instructionsof type A would the program execution time decrease?arrow_forward
- Write an openMP program that calculates the integration of the following function F(x) = 2 x° - x? +2 x For the interval 0 to 5. Processor will be assigned equal parts of the interval to calculate its integration. Let the user enter the number of trapezoids for each interval. Time your execution for different number of processors (2-8). Report your findings.arrow_forwardWhat is the physical address of this instruction Source operand of MOV BL, [SI + BP - 9H], If you know that (ES) = 1AOOH , %3D (DS) = 4200H , (SS) = DOOOH , (BX) = 0200H %3D , (BP) = 1000H, (SP) = 1020H , (SI) = 0400H , %3D (DI) = 0300 H PA = E2503 H O PA = 424F7H PA = D13F7H O PA = 424F6H PA = 1D503H Oarrow_forwardQuestion 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_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education