dbms
dbms
### 31. Difference Between Share Lock and Exclusive Lock, Definition of Lock
• Lock: A mechanism to control concurrent access to a database.
• Shared Lock: Allows multiple transactions to read a resource but not modify it.
• Exclusive Lock: Allows only one transaction to modify a resource, preventing other
transactions from reading or writing to it.