Question: A race condition occurs when multiple processes or threads read and write data items so that the final result depends on the order of
A race condition occurs when multiple processes or threads read and write data items so that the final result depends on the order of execution of instructions in the multiple processes. a) b) Suppose that TWO (2) processes, P1 and P2 in a situation where both share the global variable num. Briefly explain the situation that requires P1 and P2 are in a race condition. [5 Marks] Briefly explain the concerns of operating systems from the situation in Question 3(a). [15 Marks] [Total : 20 Marks]
Step by Step Solution
3.36 Rating (146 Votes )
There are 3 Steps involved in it
a In a situation where processes P1 and P2 share the global variable num a race condition can occur if both processes perform operations on num withou... View full answer
Get step-by-step solutions from verified subject matter experts
