What is the role of a semaphore in operating systems?
Q1. What is the role of a semaphore in operating systems?
Answer: Process Synchronization
Explanation: Semaphores are used for process synchronization, controlling access to shared resources by multiple processes.