Question: 3. Indicate what is wrong with the following implementations of wait () and signal(). For each problem you find, provide an example that illustrates
3. Indicate what is wrong with the following implementations of wait () and signal(). For each problem you find, provide an example that illustrates what would happen if we use these wrong versions of the functions. Fix the problems. wait (semaphore *S) { S->value--; } if (S->value value++; if (S->value list; wakeup (P); add this process to S->list; block(); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
