...
Question 152 – ISRO-2018
June 1, 2024
Question 159 – ISRO-2018
June 2, 2024
Question 152 – ISRO-2018
June 1, 2024
Question 159 – ISRO-2018
June 2, 2024

Transactions

Question 67
Let us assume that transaction T1 has arrived before transaction T2. Consider the schedule
S=r1(A); r2(B) ; w2(A); w1(B)
Which of the following is true?
A
Allowed under basic timestamp protocol.
B
Not allowed under basic timestamp protocols because T1 is rolled back
C
Not allowed under basic timestamp protocols because T2 is rolled back
D
None of these
Question 67 Explanation: 

→ There are 2 conflicting actions a and b is shown in above diagram.
→ In timestamp ordering protocol, conflicting actions in ascending order time-stamps are allowed i.e ‘a’ is allowed but not ‘b’.
→ So we need to roll back T1 after that only it will be allowed. Because of all conflicting actions in ascending order timestamps in below diagram.
Correct Answer: B
Question 67 Explanation: 

→ There are 2 conflicting actions a and b is shown in above diagram.
→ In timestamp ordering protocol, conflicting actions in ascending order time-stamps are allowed i.e ‘a’ is allowed but not ‘b’.
→ So we need to roll back T1 after that only it will be allowed. Because of all conflicting actions in ascending order timestamps in below diagram.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!