GATE Computer ScienceVery hardGATE CS (PYQ pattern)
After a section of a program was made 10 times faster, measurements on the improved program show that the improved section accounts for 60% of its new execution time. What is the overall speed-up over the original program?
- A. 6.40
- B. 2.17
- C. 2.50
- D. 10.00
Correct answer: A. 6.40
Take the new time as 1: 0.4 is unimproved and 0.6 is the improved section, which originally took 6. Original time = 0.4 + 6 = 6.4, so the speed-up is 6.4 (the section was 93.75% of the original time). Plugging 60% into Amdahl's law as if it were the original fraction gives 2.17; its limit is 2.5.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A fully associative cache of 3 lines (block = one word) sees the block reference string [2, 4, 4, 0, 4, 5, 5, 2, 0, 2, 2, 2, 3, 5, 2, 1]…
- A 16-bit instruction has 5-bit address fields. Two-address instructions use a 6-bit opcode; further opcodes are obtained by expanding into…
- The back-edge branch of an inner loop executes the outcome pattern T T T N (three taken, one exit), repeated for 6 consecutive outer…
- A memory system has access time 40 ns and cycle time 60 ns per module. If the addresses are low-order interleaved over 4 such modules and…
- 90% of a program parallelises perfectly, but coordinating p processors adds an overhead of 0.005·p of the single-processor run time, so…
- Three caches with 4 one-word lines each see the word-address trace [0, 4, 0, 8, 4, 0, 12, 4, 0, 8]: (i) direct-mapped, (ii) 2-way…