engineering recuitment GATE CSE 2023-24 Test Series Operating Systems Concurrency and Synchronization Operating System Solution
The following two functions P0 and P1 that share a variable X with an initial value of 1 execute concurrently.
|
P0() { Y = X + 1 X = Y * 3 } |
P1() { Z = X - 1 X = Z + 1 } |
The addition of the smallest and largest values that X can possibly take after the execution is ______.
Enter numerical value using the virtual keypad. Round off where necessary.