What is the purpose of a semaphore in process synchronization ?

2026

What is the purpose of a semaphore in process synchronization ?

Answer: B. To control access to shared resourcesSemaphores are synchronization primitives designed to control access to shared resources.

  1. A.

    To schedule processes

  2. B.

    To control access to shared resources

  3. C.

    To allocate memory

  4. D.

    To handle interrupts

Attempted by 480 students.

Show answer & explanation

Correct answer: B

Semaphores are synchronization primitives designed to control access to shared resources.

Explore the full course: Niacl Ao It Specialist

Loading lesson…