Semaphores are widely used in operating systems and concurrent programming to synchronize access to shared resources and prevent issues like deadlock and resource contention.
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
Verified By Collegedunia
The Correct Option isA
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.