Multiple choice

Semaphores are used to solve

  1. process synchronization

  2. race condition

  3. parallel execution

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Semaphores are synchronization primitives used to manage access to shared resources by multiple processes. They are primarily used to solve process synchronization problems, such as mutual exclusion.