Question:

Which issue in process synchronization is prevented by using a semaphore?

Show Hint

The primary use of a semaphore is to solve the critical section problem (ensuring mutual exclusion). However, their misuse can lead to other problems, most notably deadlocks. They are a powerful but low-level synchronization tool.
Updated On: Jul 2, 2026
  • CPU scheduling
  • Deadlocks
  • Memory Fragmentation
  • Page Faults
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

This question is slightly ambiguous, as semaphores are primarily used to prevent race conditions by ensuring mutual exclusion, which isn't an option. However, we must evaluate the given choices.
A semaphore is a synchronization tool used to control access to a shared resource by multiple processes. It consists of a counter and two atomic operations:wait()` (orP()`) andsignal()` (orV()`).
(A) CPU scheduling is an OS function to decide which process runs next; semaphores are tools used by processes, not to prevent scheduling itself.
(C) Memory Fragmentation is a memory management issue.
(D) Page Faults are related to virtual memory.
Was this answer helpful?
0
0