A semaphore is an integer variable that, apart from initialization, is…

2024

A semaphore is an integer variable that, apart from initialization, is accessed only through which of the following standard atomic operations?

Answer: D. signal ( )A semaphore is accessed through standard atomic operations such as wait and signal. Among the given options, `signal()` is the standard semaphore operation.

  1. A.

    release ( )

  2. B.

    lock ( )

  3. C.

    acquire ( )

  4. D.

    signal ( )

Attempted by 802 students.

Show answer & explanation

Correct answer: D

A semaphore is accessed through standard atomic operations such as wait and signal. Among the given options, `signal()` is the standard semaphore operation.

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

Explore the full course: Hpsc Pgt Computer Science

Loading lesson…