📜  门| GATE-CS-2015(Set 3)|第61章

📅  最后修改于: 2021-06-29 17:34:14             🧑  作者: Mango

考虑以下具有三个阶段S1,S2和S3的管道的预留表。

Time -->
-----------------------------
      1    2   3    4     5
-----------------------------
S1  | X  |   |   |    |  X |    
S2  |    | X |   | X  |    |
S3  |    |   | X |    |    |

最小平均延迟时间(MAL)为__________
(A) 3
(B) 2
(C) 1
(D) 4答案: (A)
解释:

S1 | X | Y |   |   | X | Y | X | Y |   |   | X | Y |
S2 |   | X | Y | X | Y |   |   | X | Y | X | Y |   |
S3 |   |   | X | Y |   |   |   |   | X | Y |   |   |
We can interleave instructions like the above
pattern.
Latency between X and Y is 1.
Latency between fist and second X is 5.
The pattern repeats after that.
So, MAL is (1 + 5)/2;
Quiz of this Question