Hello everyone, I'm new in C and I don't know how to do this.Can someone help me?
Hello everyone, I'm new in C and I don't know how to do this.Can someone help me?
Hello ExxCal ,
Not sure if I understood correctly what you want to do, having a code in my hands would make it easier, but I think this is what you are looking for.
You can have some further info in case you are interrest from this link : POSIX SemaphoresCode:int sem_init(sem_t *sem, int pshared, unsigned int value); For example : for(i=0; i < 5; i++) sem_init(&sem_name, 0, 10);
What operating system? In the case of windows, mutexes and semaphores are "handles", and creating an array of handles is not an issue, and is required if using WatiForMultipleObjects.
WaitForMultipleObjects function (synchapi.h) | Microsoft Docs