What is the primary purpose of a semaphore in operating systems?
To synchronize access to shared resources
To handle input/output operations exclusively
To schedule processes independently
To manage memory allocation

Operating Systems Exercises are loading ...