RajeswariKnowledge Contributor
What is the initial value of the semaphore to allow only one of the many processes to enter their critical section?
What is the initial value of the semaphore to allow only one of the many processes to enter their critical section?
So, in order to allow only one process to enter the critical section, binary semaphore is initialized to 1. Because after entering critical section, semaphore values become 0.