1. Engineering
  2. Computer Science
  3. having a hard time with this question can someone help...

Question: having a hard time with this question can someone help...

Question details

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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution