Question

A semaphore is initialized to 1. If two processes P1 and P2 both try to execute a `wait()` (

  • P operation on this semaphore, what is the maximum number of processes that can successfully proceed past the `wait()` operation immediately?
B 1
C 2
D Depends on scheduling
E None of the above
Practice Next

Hey! Ask a query