Question:

What do semaphores do?

Show Hint

Semaphores are widely used in operating systems and concurrent programming to synchronize access to shared resources and prevent issues like deadlock and resource contention.
Updated On: May 4, 2025
  • Synchronize critical resources to prevent deadlock
  • Synchronize critical resources to prevent contention
  • Used for shutting down the computer system
  • Used to maintain the clock speed of every process
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Semaphores are synchronization tools used in concurrent programming to control access to shared resources, ensuring that multiple processes can safely access them without causing deadlocks. Their main role is to prevent deadlock by properly synchronizing access to critical resources.
Therefore, the correct answer is 1. Synchronize critical resources to prevent deadlock.
Was this answer helpful?
0
0