Skip to content
Related Articles
Get the best out of our app
Open App

Related Articles

ISRO | ISRO CS 2020 | Question 64

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

One instruction tries to write an operand before it is written by previous instruction. This may lead to a dependency called
(A) True dependency
(B) Anti-dependency
(C) Output dependency
(D) Control hazard

Answer: (C)

Explanation: There are three types of data dependencies:

  1. Flow (data) dependence :
    O(S1) ∩ I (S2), S1 → S2 and S1 writes after something read by S2
  2. Anti-dependence :
    I(S1) ∩ O(S2), S1 → S2 and S1 reads something before S2 overwrites it
  3. 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
Last Updated : 09 Sep, 2020
Like Article
Save Article
Similar Reads