Done for an OS class.  Basic semaphore, prod/consumer problem, etc.