In the process of executing each code, two variable sets of input and output are usually designed. For the
The criterion that the two code blocks
$I_1 \cap O_2 = \emptyset$ $I_2 \cap O_1 = \emptyset$ $O_1 \cap O_2 = \emptyset$
Let
| P1\P2 | Read | Write |
|---|---|---|
| Read | Read before read: No dependency | Read before write: Anti dependency |
| Write | Write before read: Stream dependency |
Write first and then write: Output dependency |
- Stream denpendency: Partial, by reconstruction methods
- Ant-denpendency: By a temporary array
- Output dependency: By temporary variables