Question: Having a hard time with this question, can someone help me please. thank you in advance Consider the following processes that might run in any
Having a hard time with this question, can someone help me please. thank you in advance

Consider the following processes that might run in any order, where all variables are global, shared, and undefined at the start. P1: a 2 b 4 P2: c-a+b e h(a) baf(b) (i) Is there any dependence among these three processes? If yes, what are the variable dependencies? [3] (ii) What is the race condition in this set of three processes? Explain. [3] (iii) Using semaphores, write 3 procedures (one for each process) ensuring no race condition is possi- ble. 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
