Critical Section Example

Here is the critical section problem given in class. Included are: I incourage you all to take a look at this and try running the two programs generated by make, namely counter, and counter_atomic. Can you figure out what is going on in these two programs? This should give you an example of makefiles in action as well as examples of using the fork and flock system calls. Can you see from this example how mutual exclusion is achieved in UNIX?