Question: What is the main advantage of using semaphores in synchronization?
Options:
Correct Answer: They prevent race conditions
Solution:
Semaphores are used to prevent race conditions by controlling access to shared resources.