Computer Sciences > GATE 2026 SET-1 > Pipeline Hazards
Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?
A
Write-after-write
B
Read-after-write
C
Write-after-read
D
Write-after-write

Correct : c

The correct answer is Option C: Read-after-write.
Among all register dependencies, RAW is the one that causes a true data hazard in a pipelined processor. It happens when a later instruction needs to read a register that an earlier instruction is still in the process of writing. Since the pipeline overlaps instruction execution, the later instruction may read a stale (old) value before the write is completed - this is a genuine hazard.
Here"s a quick summary of all four dependencies:
RAW (Read after Write): True data dependency - causes real hazards. The pipeline must stall or use data forwarding to resolve it.
WAR (Write after Read): Anti-dependency - not a hazard in a simple in-order pipeline since the read always happens before the write in program order.
WAW (Write after Write): Output dependency - not a hazard in a basic in-order pipeline; writes complete in program order.
RAR (Read after Read): Not a dependency at all - reading a register from multiple instructions simultaneously causes no conflict whatsoever.

Similar Questions

A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ
Choose the word that is opposite in meaning to the word “coherent”.
#5 MCQ

Related Topics

GATE CS 2026 GATE CS 2026 Set-1 Q25 Data Hazard Pipeline Hazard RAW Read after Write WAW Write after Write WAR Write after Read RAR Read after Read True Data Dependency Pipeline Dependency Computer Organization GATE GATE CS 2026 Solved Pipelined Processor

Unique Visitor Count

Total Unique Visitors

Loading......