Question:easy

Which of the following synchronization mechanisms allows multiple processes to safely access a shared resource?

Show Hint

Look for the classic wait and signal counter used to guard a critical section, not a memory technique.
Updated On: Jul 2, 2026
  • Buffering
  • Paging
  • Virtual memory
  • Semaphore
Show Solution

The Correct Option is D

Solution and Explanation

Idea: Filter the options by the word synchronization.

Safe concurrent access needs a mechanism that lets processes wait and signal around a critical section. A semaphore does exactly this through two atomic operations:

\[wait(S){:}\ S \leftarrow S - 1, \qquad signal(S){:}\ S \leftarrow S + 1\]

The counter blocks extra processes until a slot frees up, guaranteeing mutual exclusion. Buffering, paging, and virtual memory are all memory or data-flow techniques with no locking role.

\[\boxed{\text{Semaphore}}\]
Was this answer helpful?
0