Multiple choice

The initial value of the semaphore that allows only one of the many processes to enter their critical sections, is

  1. 8

  2. 1

  3. 16

  4. 0

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

A binary semaphore used for mutual exclusion in critical sections starts with an initial value of 1. A value of 1 allows the first process to enter the critical section immediately while blocking subsequent ones.