Question: Please elaborate on how you figured out the solution! I already have the answer, just need clarification on how/why the answer is considered correct. :)
Please elaborate on how you figured out the solution! I already have the answer, just need clarification on how/why the answer is considered correct. :)
Answer: (Please help explain how the answer is correct!)
28) A

# Figure 7 # Initialization of shared variable: Lock0 Entry section: Key1; do Swap( &Key, &Lock ) while Key != 0; Exit section: Lock = 0; 28. Consider Figure 7, where "Swap" is an atomic operation. Assume five processes share a critical resource. If all five of the processes use the entry and exit sections correctly to guard their critical sections, which of the following is correct? A) Starvation may occur. B) Deadlock may occur. C) A violation of mutual exclusion may occur. D) All of the above E) None of the above # Figure 7 # Initialization of shared variable: Lock0 Entry section: Key1; do Swap( &Key, &Lock ) while Key != 0; Exit section: Lock = 0; 28. Consider Figure 7, where "Swap" is an atomic operation. Assume five processes share a critical resource. If all five of the processes use the entry and exit sections correctly to guard their critical sections, which of the following is correct? A) Starvation may occur. B) Deadlock may occur. C) A violation of mutual exclusion may occur. D) All of the above E) None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
