Rock YouTube channel with real views, likes and subscribers
Get Free YouTube Subscribers, Views and Likes

7.5- Lost Update Problem in Concurrency In DBMS | Why Concurrency Control Is Needed | Full Syllabus

Follow
TutorialsSpace- Er. Deepak Garg

7.5 Lost Update Problem in Concurrency In DBMS | Why Concurrency Control Is Needed | Full Syllabus

PLAYLIST:
DBMS Data Base Management System Tutorials | All University Exams UGC NET GATE DBMS Lectures
   • DBMS Complete Syllabus All Universit...  

Transactions & Concurrency Control In DBMS | Serializability | Recoverability | recovery System | Time stamp
   • Transactions & Concurrency Control In...  

database management system tutorial,
database tutorials,
transaction in dbms,
transaction management system in dbms,

dbms tutorials,
dbms tutorials in hindi,
dbms lectures,
dbms lectures in hindi,
dbms tutorials online,
dbms lectures online,
lost update problem in dbms,

dbms gate lectures in hindi,
dbms ugc net lectures,
dbms gate lectures,


#gatedbmslecturesinhindi
#ugcnetdbmslecturesinhindi
#gatedbmslectures
#ugcnetdbmslectures
#dbmsLectures
#dbmsTutorials


Why Concurrency Control is Needed?
To make system efficient and save time, it is required to execute more than one transaction
at the same time. But concurrency leads several problems. The three problems associated
with concurrency are as follows:
1. The Lost Update Problem
If any transaction Tj
updates any variable v at time t without knowing the value of v at time
t then this may leads to lost update problem. Consider the transactions shown in Figure 8.3.
Transaction Ti Time Tansaction Tj
— —
read(v) t
1 —
— —
— t
2 read(v)
— —
update(v) t
3 —
— —
— t
4 update(v)

The lost update problem.
Transactions and Concurrency Control 351
At time t1 and t2, transactions ti and tj reads variable v respectively and get some value of v. At time t3, ti updates v but, at t4, tj also updates v (old value of v) without looking
the new value of v (updated by ti
). So, updation made by ti
at t3 is lost at t4 because Tj
overwrites it.

Notes Link:
http://www.tutorialsspace.com/Downloa...

posted by minkosirq