GATEverse
← GATE CSE 2019

Q23

NAT1 mark

Consider three concurrent processes P1,P2P_1, P_2 and P3P_3 as shown below, which access a shared variable DD that has been initialized to 100.100.

P1P2P3::::::D=D+20D=D−50D=D+10::::::\begin{array}{|c|c|c|} \hline P_1 & P_2 & P_3 \\ \hline : & : & : \\ : & : & : \\ D=D+20 & D=D-50 & D=D+10 \\ : & : & : \\ : & : & : \\ \hline \end{array}

The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of DD after the three processes have completed execution are XX and YY respectively, then the value of Y−XY-X is ______

Sign in to save attempts.

Loading…