Code illustrating synchronization badcnt.c: Shows effects of race conditions and how to prevent them. Command line options -o Use optimized code -s Use semphores -n iters Set number of iterations