Multiple choice

What is the initial value of the semaphore to allow only one of the many processes to enter its critical section?

  1. 8

  2. 1

  3. 16

  4. 0

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

A semaphore initialized to 1 ensures mutual exclusion - only one process can enter the critical section at a time. Value 0 would block all processes, while 8 or 16 would allow multiple concurrent entries.