Jump to content

Data dependency

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dublin2006 (talk | contribs) at 18:26, 18 February 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A data dependency in computer science is a situation whereby computer instructions refer to the results of preceding instructions that have not yet been completed

Examples of Data Dependencies

There are three types of data hazards or data dependencies:

  • RAW - Read After Write
  • WAR - Write After Read
  • WAW - Write After Write

RAW - Read After Write

A RAW Data Hazard refers to a situation where we refer to a result that has not yet been calculated, for example: R2 <- R1 + R3 R4 <- R2 + R3