Multiple choice

For granting only one process among many processes to enter their critical section, the initial value of semaphore should be

  1. 8

  2. 16

  3. 2

  4. 1

  5. 32

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Semaphore is an integer variable that is accessed through two variables, wait and signal. The initial value of semaphore should be 1 for granting only one process among many processes to enter their critical section. It helps in synchronisation of processes.