Question DB-CC-0022
EasyCan two transactions hold shared locks on the same item at the same time?
- A.
No, never
- B.
Yes, because both are only reading
- C.
Show answer and explanation
Answer: B
Shared (read) locks are compatible with each other.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Concurrency Control question
Can two transactions hold shared locks on the same item at the same time?
No, never
Yes, because both are only reading
Answer: B
Shared (read) locks are compatible with each other.
Only on weekends
Only if they belong to the same user