What is the purpose of a semaphore in process synchronization ?
2026
What is the purpose of a semaphore in process synchronization ?
- A.
To schedule processes
- B.
To control access to shared resources
- C.
To allocate memory
- D.
To handle interrupts
Attempted by 107 students.
Show answer & explanation
Correct answer: B
Semaphores are synchronization primitives designed to control access to shared resources.