Computer Sciences > Gate 2015 Set-2 > Transactions
Consider the following transaction involving two bank accounts x and y.
read(x); x := x β 50; write(x); read(y); y := y + 50; write(y)
The constraint that the sum of the accounts x and y should remain constant is that of
read(x); x := x β 50; write(x); read(y); y := y + 50; write(y)
The constraint that the sum of the accounts x and y should remain constant is that of
Explanation
Correct : Transactions
Similar Questions
What is the worst-case time complexity of insertion in an AVL tree?
Which operations on a binary search tree have O(h) complexity?
Compare search complexities of sorted array vs balanced BST.