Question DB-CC-0042
MediumT1 holds a shared lock on X. T2 requests an exclusive lock on X. What happens?
- A.
T1 is upgraded
- B.
X is deleted
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Concurrency Control question
T1 holds a shared lock on X. T2 requests an exclusive lock on X. What happens?
T1 is upgraded
X is deleted
Sign up free to see the answer and a step-by-step explanation.
T2 gets the lock at once
T2 waits until T1 releases its lock