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. 1 — 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…
- A.
0
- B.
1
- C.
2
- 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.
Loading lesson…