Question: Complete the line in the semaphore wait() functions. wait(semaphore *s) { if (s-> value______ 0) { remove a process P from S->list; wakeup(P) } S->value--;
Complete the line in the semaphore wait() functions.
wait(semaphore *s) {
if (s-> value______ 0) {
remove a process P from S->list;
wakeup(P)
}
S->value--;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
