sem_init function added to Semaphore module