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?

  1. A.

    release ( )

  2. B.

    lock ( )

  3. C.

    acquire ( )

  4. D.

    signal ( )

Attempted by 172 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025