Question 61
HardIs the schedule r1(A), w2(A), r2(B), w1(B) conflict-serialisable?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
Is the schedule r1(A), w2(A), r2(B), w1(B) conflict-serialisable?
Yes, equivalent to T1 then T2
No, the precedence graph has the cycle T1 → T2 → T1
There are no conflicts
Yes, equivalent to T2 then T1
Sign up free to see the answer and a step-by-step explanation.
Which serial order is the schedule r1(A), r2(B), w1(A), r3(A), w2(B), w3(C) conflict-equivalent to?
T3, T1, T2 only
T2, T3, T1 only
T1, T3 (with T2 anywhere relative to them)
No serial order
Sign up free to see the answer and a step-by-step explanation.
The schedule r1(X), r2(X), w1(X), w2(X) is an example of which problem?
A dirty read only
A serial schedule
A lost update, and it is not conflict-serialisable
A phantom
Sign up free to see the answer and a step-by-step explanation.
How many edges does the precedence graph of w1(A), r2(A), w2(B), r3(B), w3(C), r1(C) have, and is it serialisable?
No edges
3 edges; serialisable
2 edges; serialisable
3 edges forming a cycle; not serialisable
Sign up free to see the answer and a step-by-step explanation.
Which statement about view serialisability is true?
View serialisability is easier to test
Every conflict-serialisable schedule is view-serialisable, but not the other way round
Conflict serialisability includes blind writes that view serialisability excludes
They are the same
Sign up free to see the answer and a step-by-step explanation.
Under basic two-phase locking, can a deadlock occur?
Only with read locks
Only with one transaction
Yes
No, 2PL prevents deadlock
Sign up free to see the answer and a step-by-step explanation.
Which variant of two-phase locking holds all locks (not just exclusive ones) until commit?
Rigorous 2PL
Conservative 2PL
Basic 2PL
Strict 2PL
Sign up free to see the answer and a step-by-step explanation.
In timestamp ordering, TS(T) = 20. R-TS(X) = 25 and W-TS(X) = 15. T issues write(X). What happens?
The write succeeds
The write is ignored
T is rolled back, because a younger transaction has already read X
T waits
Sign up free to see the answer and a step-by-step explanation.
In timestamp ordering with Thomas's write rule, TS(T) = 20, R-TS(X) = 10 and W-TS(X) = 30. T issues write(X). What happens?
The write is ignored as obsolete, and T continues
The write succeeds and W-TS becomes 20
T is rolled back
T waits
Sign up free to see the answer and a step-by-step explanation.
In wait-die, T5 (timestamp 5) requests a lock held by T9 (timestamp 9). Then T9 requests a lock held by T5. What happens in each case?
T5 waits; T9 is aborted (dies)
Both die
T5 dies; T9 waits
Both wait
Sign up free to see the answer and a step-by-step explanation.