0 votes 0 votes a) x = 1, y = 2 b) x = 1, y = 3 c) x = 4, y = 6 Multiple options can be selected Operating System process-synchronization + – Shefali asked Jul 27, 2015 Shefali 422 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 0 votes 0 votes B and C is possible . For b : y=2 ; x=x+3=3 x=1; (final write ) y=y+x = 2+1 =3 for c : x = 4, y = 6 this is possible run x=1 after that prrempt it now run code of y=2, x=x+3 here x=1 therefore y=4.now resume from where we prreempt ie statement x=x+y executed x=4+2 giving x=4 and y=6 Pranay Datta 1 answered Jul 28, 2015 • selected Jan 21, 2016 by Pooja Palod Pranay Datta 1 comment Share Follow See 1 comment See all 1 1 comment reply focus _GATE commented Jul 28, 2015 reply Follow Share yes correct i miss that one.:D 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes x = 4, y = 6 this is possible run x=1 after that prrempt it now run code of y=2, x=x+3 here x=1 therefore y=4.now resume from where we prreempt ie statement x=x+y executed x=4+2 giving x=4 and y=6 focus _GATE answered Jul 28, 2015 focus _GATE comment Share Follow See all 0 reply Please log in or register to add a comment.