Multiple choice

Semaphore is used to solve the problem of __________.

  1. race condition

  2. process synchronization

  3. mutual exclusion

  4. only 2 and 3

  5. avoiding deadlock

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

Semaphores cannot be used to avoid deadlock. Both the options mentioned are the functions of semaphore.