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?
- A.
release ( )
- B.
lock ( )
- C.
acquire ( )
- 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.