The process of managing simultaneous operation against a database so that data integrity is maintained and operation do not interfere with each other in a multi user environment.
Two basic approaches to concurrency control
- Pessimistic approach
- Optimistic approach
Concurrency Control Action
The actions that must be taken to ensure that data integrity is maintained are called concurrency control action.
Lost update
Multiple users attempt to update a database without adequate concurrency control called lost update.
Locking mechanism are the most common type of concurrency control mechanism.
Purpose of concurrency control
- To enforce isolation ( isolation means -one transaction is not interleaving with another transaction)
- To preserve database consistency
- To resolve read-write and write-write conflicts
No comments:
Post a Comment