Semaphores are used to :
2004
Semaphores are used to :
- A.
Synchronise critical resources to prevent deadlock
- B.
Synchronise critical resources to prevent contention
- C.
Do I/o
- D.
Facilitate memory management
Attempted by 191 students.
Show answer & explanation
Correct answer: B
Semaphores are synchronization primitives used to manage access to shared resources in concurrent systems. Their primary purpose is preventing race conditions by ensuring mutual exclusion during critical section execution.
A video solution is available for this question — log in and enroll to watch it.