In operating systems, what is the primary purpose of a semaphore?
To control access to shared resources
To allocate memory
To detect deadlocks
To synchronize processes

Operating Systems Exercises are loading ...