Create semaphores

An example of Process synchronization using semaphores.