Gate CS-2006 Question Paper With Solutions

Q. 29 A CPU has five-stages pipeline and runs at 1GHz frequency. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction computes the target address and evaluates the condition in the third stage of the pipeline. The processor stops fetching new instructions following a conditional branch until the branch outcome is known. A program executes 109 instructions out of which 20% are conditional branches. If each instruction takes one cycle to complete on average, then total execution time of the program is

(A) 1.0 second

(B) 1.2 seconds

(C) 1.4 seconds

(D) 1.6 seconds

Answer: (C)

Explanation: Gate CS-2006 Question Paper With Solutions

Learn More:   Gate EC-2018 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here