In order to allow only one process to enter its critical section, binary…

2010

In order to allow only one process to enter its critical section, binary semaphore are initialized to

Answer: B. 1Binary semaphores are used for mutual exclusion to ensure only one process accesses a critical section at a time. They must be initialized to 1, allowing the…

  1. A.

    0

  2. B.

    1

  3. C.

    2

  4. D.

    3

Attempted by 544 students.

Show answer & explanation

Correct answer: B

Binary semaphores are used for mutual exclusion to ensure only one process accesses a critical section at a time. They must be initialized to 1, allowing the first process to enter while subsequent processes wait until it exits. This initialization guarantees proper synchronization without deadlock or race conditions.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…