ISRO | ISRO CS 2020 | Question 64
One instruction tries to write an operand before it is written by previous instruction. This may lead to a dependency called
(A) True dependency
(C) Output dependency
(D) Control hazard
Explanation: There are three types of data dependencies:
- Flow (data) dependence :
O(S1) ∩ I (S2), S1 → S2 and S1 writes after something read by S2
- Anti-dependence :
I(S1) ∩ O(S2), S1 → S2 and S1 reads something before S2 overwrites it
- Output dependence :
O(S1) ∩ O(S2), S1 → S2 and both write the same memory location.
Option (C) is correct.
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...