Question OS-SYNC-0004
EasyWhat are the two atomic operations on a semaphore?
- A.
wait (P) and signal (V)
- B.
push and pop
- C.
Show answer and explanation
Answer: A
wait() decrements the semaphore (blocking if it can't), and signal() increments it, possibly waking a waiter.