int sema_module_init()This function initializes Semaphore library module. It is typically called from .
int sema_init(struct sema * sem,int count)Every semaphore variable should be initialized by this function. The count variable is for the number of semaphore resources.