Simple Semaphore Program In C