A processor takes 12 cycles to complete an instruction I. The corresponding pipelined processor uses 6 stages with the execution times of 3, 2, 5, 4, 6 and 2 cycles respectively. What is the asymptotic speedup assuming that a very large number of instructions are to be executed?
(A) 1.83
(B) 2
(C) 3
(D) 6
Answer: (B)
Explanation: For non pipeline processor,
It takes, 12 cycles to complete 1 instruction
So, for n instructions it will take 12n cycle
For pipelined processor,
Each stage time = max{each stage cycles} = max{3, 2, 5, 4, 6 and 2} = 6 cycles
So, for n instructions it will take = 6*6+ (n-1)*6 {6*6 for 1st instruction and for rest of n-1 it will take 6}
For a large number of instructions:
Limn->∞ 12n/36 + (n-1)*6 = 12/6 =2
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 1997 | Question 61
- GATE | GATE CS 1997 | Question 60
- GATE | GATE CS 1997 | Question 59
- GATE | GATE CS 1997 | Question 58
- GATE | GATE CS 1997 | Question 57
- GATE | GATE CS 1997 | Question 56
- GATE | GATE CS 1997 | Question 55
- GATE | GATE CS 1997 | Question 54
- GATE | GATE CS 1997 | Question 53
- GATE | GATE CS 1997 | Question 52
Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.

