This is an example I concocted to show the need for Unix/Linux semaphores. Due to the scheduling in Solaris, the output of this program will show the 5 outputs from one process followed by the 5 outputs from the other. For a better demonstration, run this code on a Linux machine, such as volatile.case.edu .