Which of the following hazards occurs if the read takes place before the write operation is complete?
Which of the following hazards occurs if the read takes place before the write operation is complete? Correct Answer True dependency
The correct answer is option 1.
Concept:
A flow dependence, also known as a data dependency, true dependency, or read-after-write (RAW) happens when one instruction is dependent on the outcome of another. A hazard occurs if the read takes place before the write operation is complete.
Hence the correct answer is True dependency.
Additional Information
- Write after reading (RAW), or anti-dependence is a hazard that occurs if the write operation completes before the read operation takes place.
- Write after write (RAW), or output dependency: Two instructions both write to the same location. A hazard occurs if the write operations take place in the reverse order of the intended sequence.
- A control hazard, also known as a branch hazard, occurs when the pipeline makes the wrong decision branch prediction and therefore brings instructions into the pipeline that must subsequently be discarded.
মোঃ আরিফুল ইসলাম
Feb 20, 2025