Question 41
MediumSchedule S: r1(X), w2(X), w1(X). Is it conflict-serialisable?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
Schedule S: r1(X), w2(X), w1(X). Is it conflict-serialisable?
Yes, equivalent to T1, T2
No, there is a cycle T1 → T2 → T1
It has no conflicts
Yes, equivalent to T2, T1
Sign up free to see the answer and a step-by-step explanation.
Schedule S: r1(A), r2(B), w1(A), w2(B). Which serial schedules is it conflict-equivalent to?
Neither
Only T1, T2
Both T1, T2 and T2, T1
Only T2, T1
Sign up free to see the answer and a step-by-step explanation.
Schedule S: w1(A), r2(A), w2(B), r1(B). What does the precedence graph contain?
No edges
One edge T2 → T1 only
A cycle, so S is not conflict-serialisable
One edge T1 → T2 only
Sign up free to see the answer and a step-by-step explanation.
In basic timestamp ordering, TS(T1) = 5 and W-timestamp(X) = 8. T1 tries to read X. What happens?
T1 waits
T1 reads X
X's timestamp becomes 5
T1 is rolled back
Sign up free to see the answer and a step-by-step explanation.
In basic timestamp ordering, TS(T2) = 10 and R-timestamp(X) = 12. T2 tries to write X. What happens?
The write is ignored silently
T2 waits
T2 is rolled back
T2 writes X
Sign up free to see the answer and a step-by-step explanation.
In wait-die, T1 (timestamp 3) requests a lock held by T2 (timestamp 7). What happens?
T2 is aborted
T1 waits
Both are aborted
T1 is aborted
Sign up free to see the answer and a step-by-step explanation.
In wound-wait, T1 (timestamp 3) requests a lock held by T2 (timestamp 7). What happens?
T1 is aborted
T1 waits
Nothing
T2 is aborted (wounded)
Sign up free to see the answer and a step-by-step explanation.
A transaction holds a shared lock on X and wants to write it. What is this step called?
Lock timeout
Lock downgrade
Lock upgrade
Lock escalation
Sign up free to see the answer and a step-by-step explanation.
A transaction locks 5,000 rows of a table, and the DBMS replaces those locks with one table lock. What is this?
Phantom
Lock escalation
Deadlock
Lock upgrade
Sign up free to see the answer and a step-by-step explanation.
What does an intention-exclusive (IX) lock on a table mean in multiple-granularity locking?
The table is fully locked for writing
The transaction only reads the table
The table is being dropped
The transaction intends to take exclusive locks on some rows of that table
Sign up free to see the answer and a step-by-step explanation.