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