- code block A1 should run BEFORE code block C1.
- code block B1 should run BEFORE code block A2.
- code block B2 should run BEFORE code block C2.
- code block A2 should run BEFORE code block B3.
- code block C2 should run BEFORE code block A3.
- code block B4 should be the LAST executed code block.
Pogram using the POSIX semaphore library for Linux/UNİX (#include<semaphore.h>).