Professional Documents
Culture Documents
Solution For 2
Solution For 2
http://www.scribd.com/doc/6677221/Parallel-Processing-PART-4new
Only any two adjacent iterations asked, hence assume first two iterations.
Statements
S1 A(2)=B(0)+C(1)
S2 B(1)=A(1) X K
S3 C(1)=B(1) - 1
S1(i+1) A(3)=B(1)+C(2)
S2 (i+1) B(2)=A(2) X K
S3 (i+1) C(2)=B(2) - 1
1. Flow dependency:
S1 S2 (i+1)
S2 S3
S2 S1 (i+1)
S2 (i+1) S3 (i+1)
2. Anti dependency:
S1 S3
S3(i+1) S1(i+1)