retagged by
551 views

1 Answer

2 votes
2 votes

b,c are possible

There are total 6 orders possible for executing these 4 statements concurrently (like in DBMS transactions)

x=1;                                     y=2;

y=y+x;                                x=x+3;


possible values for x,y : 

A) 4,2 

B) 4,3

C) 1,3

D) 4,6


 So,  b,c is the answer.

Related questions

3 votes
3 votes
3 answers
1
0 votes
0 votes
1 answer
2
agoh asked Dec 11, 2016
361 views
Please help in part b) What are the potential outcomes?Answer:
0 votes
0 votes
1 answer
3
ayushjain321 asked Jun 10, 2023
326 views
let a = {2,4,6,8} suppose b is a set with |b| = 5 what are the smallest and largest possible values of |A*B|