Write about Concurrency Control ?

The coordination of the simultaneous execution of transactions in a multi user data base system is known as concurrency control.

the objective of concurrency control is to ensure the Serviceability of transactions in a multi –user data base environment.

The 3–problems are

  1. Lost updates
  2. Uncommitted data
  3. Inconsistent retrievals
1.lost updates:

The problem occurs when two concurrent transactions T1 & T2 are updating the same data element & one of the update is lost.

Ex; T1 & T2  are two transactions update the account.

account contains 1000rs .

T1 deposit 2000 Rs and at the same time,

T2 deposit 3000 Rs either of the following is occur.

lost updates


2.Uncommitted data : 

 T1 & T2 transactions are executed concurrently & the first transaction (T1) is  rolled back after the second transaction (T2) has already accessed the uncommitted data.

Thus violate the isolation property of transaction .

Ex :

T1 : purchase 100 units.

T2 : sell 30 units.

Correct execution
T1
Read
35
T1
Purchase 35+100
135
T1
Write
135
T1
Roll back
35
T2
Sell 35-30
30
T2
Write
5
Uncommitted data problem
T1
Read
35
T1
Purchase
135
T1
Write
135
T2
Read
135
T2
Sell
30
T1
Roll back
35
T2
Write
105

3.Inconsistent retrievals 

this occur when a transaction access data base before & after another transaction finish working with such data.

Related

Operating the DBMS Utilities and Applications ?

DBMS operations can be divided in to four main areas. System support Performance monitoring & tuning Back up & recovery Security auditing & moni...

Testing and Evaluating Data Bases and Applications?

DBA also provide testing and evaluation services for all of the data base & end user application. Those services are logical extension of the design. Development & implementat...

Designing & Implementing Data Bases & Applications ?

The DBA function also provides data modeling & design services to end users. One of the primary activities of a DBA is to determine and enforce standards and procedures to be used. ...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item