One instruction tries to write an operand before it is written by previous…

2020

One instruction tries to write an operand before it is written by previous instruction. This may lead to a dependency called

  1. A.

    True dependency

  2. B.

    Anti-dependency

  3. C.

    Output dependency

  4. D.

    Control hazard

Attempted by 246 students.

Show answer & explanation

Correct answer: C

The situation described in the question refers to Output Dependency, also known as Write-After-Write (WAW) hazard. This occurs when two instructions write to the same location, and the second instruction writes its result before the first one completes writing its result.

Output Dependency (WAW): Occurs when two instructions attempt to write to the same operand in an incorrect order. Thus, the correct answer is (c) Output dependency.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro