engineering recuitment GATE CSE 2023-24 Test Series Operating Systems Concurrency and Synchronization Critical Section
The following two functions F1 and F2 that share a variable X, Y with an initial value 10 execute concurrently.
F1()
{
Y = X – 5;
S = 5 × Y;
}
F2()
{
Y = 5 × X;
S = Y – 5;
}
Find the sum of the distinct values that S can possibly take after the execution?Enter numerical value using the virtual keypad. Round off where necessary.