Which one of the following dependencies among the register operands of…

2026

Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?

  1. A.

    Read-after-read

  2. B.

    Read-after-write

  3. C.

    Write-after-read

  4. D.

    Write-after-write

Attempted by 49 students.

Show answer & explanation

Correct answer: B

In a pipelined processor, a data hazard occurs when one instruction depends on the result of another instruction that has not yet completed.

The most common dependency causing this problem is:Read After Write (RAW)

Here, a later instruction needs to read a value that an earlier instruction is still in the process of writing.

Therefore, the correct answer is:

B) Read-after-write

Explore the full course: Gate Guidance By Sanchit Sir