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 544 students.

Show answer & explanation

Correct answer: B

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

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…