Semaphore usage

Semaphore usage with three modules