Question DB-CC-0002
EasyWhat is a shared (S) lock used for?
- A.
Writing: only one transaction can hold it
- B.
Creating an index
- C.
Show answer and explanation
Answer: C
Shared locks are compatible with each other but not with exclusive locks.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Concurrency Control question
What is a shared (S) lock used for?
Writing: only one transaction can hold it
Creating an index
Answer: C
Shared locks are compatible with each other but not with exclusive locks.
Reading: several transactions can hold it on the same item
Deleting a table