kavyashreeKnowledge Contributor
The initial value of the semaphore that allows only one of the many processes to enter their critical sections, is
The initial value of the semaphore that allows only one of the many processes to enter their critical sections, is
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.