What is the purpose of a 'semaphore' in Operating Systems?
Q1. What is the purpose of a 'semaphore' in Operating Systems?
Answer: Synchronize access to shared resources
Explanation: Semaphore is a variable that controls access to shared resources, preventing simultaneous access.