Semaphores
- A. synchronize critical resources to prevent deadlock
- B. synchronize critical resources to prevent contention
- C. are used to do I/O
- D. are used for memory management
Answer: B. synchronize critical resources to prevent contention
Explanation: Semaphores are synchronization primitives used to manage concurrent access to shared resources (mutual exclusion).