Semaphores are used to :

2004

Semaphores are used to :

  1. A.

    Synchronise critical resources to prevent deadlock

  2. B.

    Synchronise critical resources to prevent contention

  3. C.

    Do I/o

  4. D.

    Facilitate memory management

Attempted by 191 students.

Show answer & explanation

Correct answer: B

Semaphores are synchronization primitives used to manage access to shared resources in concurrent systems. Their primary purpose is preventing race conditions by ensuring mutual exclusion during critical section execution.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor