7.24- Lock Based Protocols- Shared And Exclusive Locks | Concurrency Control | DBMS Free Course

Опубликовано: 24 Июль 2026
на канале: TutorialsSpace- Er. Deepak Garg
31,959
447

7.24- Lock Based Protocols- Shared And Exclusive Locks | Concurrency Control | DBMS Free Course

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

Complete Playlist:
(Eng) DBMS Tutorials | Sql Tutorials | RDBMS Lectures
   • (Eng) DBMS Tutorials | Sql Tutorials | RDB...  

DBMS - Data Base Management System Tutorials
   • DBMS Complete Syllabus- All University exa...  

[With Notes & PDF File] | Database Management System In HINDI
   • [With Notes & PDF File] | Database Managem...  

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


transaction in dbms, transaction management system in dbms, dbms ugc net lectures,
dbms gate lectures,
serial schedule in dbms, what is schedule in dbms, schedule in dbms, non serial schedule in dbms, serializable schedule, Serializability in dbms, conflict serializable schedule in dbms, conflict serializable schedule, view serializability in dbms, recoverability of schedule, recoverable schedule, cascading rollback shedule, cascade less schedule, concurrency control techniques, lock based protocol in dbms, shared and exclusive lock, two phase locking in transaction, time stamp based protocol in transaction, validation based protocol in dbms, multiversion concurrency control,


#dbms #gatedbms #ugcnetdbms #gatedbmslectures #ugcnetdbmslectures #dbmsLectures #dbmsTutorials
#dbmsTutorials

Social Links
Twitter Account:   / tutorialsspace  
FaceBook Page:   / tutorialsspace  
Instagram :  / tutorialsspace  
Telegram Channel: https://t.me/TutorialsSpace
Telegram Group: t.me/TutorialsSpace
Pin-Interst:   / tutorialsspace  
youtube:    / tutorialsspace  



7.1- Eng- What Is Exactly A Transaction In Transaction & Concurrency Control | DBMS Important Topics    • 7.1- Eng- What Is Transaction In Transacti...  
7.2- (Eng) ACID Properties Of RDBMS | ACID Properties In dbms | DBMS Complete Syllabus With Examples    • 7.2- (Eng) ACID Properties Of RDBMS | ACID...  
7.3- (Eng) Transaction States In DBMS | Transactions & Concurrency Control In DBMS    • 7.3- (Eng) Transaction States In DBMS | Tr...  
7.4- (Eng) Advantages of Concurrency In DBMS | Transactions & Concurrency Control DBMS    • 7.4- (Eng) Advantages of Concurrency In DB...  
7.5- (Eng) Lost Update Problem In Concurrency In DBMS | Why Concurrency Control Is Needed    • 7.5- (Eng) Lost Update Problem In Concurre...  
7.6- (Eng) Dirty Read Problem In Concurrency In DBMS | Why Concurrency Control Is Needed | DBMS    • 7.6- (Eng) Dirty Read Problem In Concurren...  

2 Concurrency Control Manager (CCM)
The concurrency control manager synchronizes the concurrent access of database transactions
to shored objects in the database. It is responsible for maintaining the guarantees regarding
the effects of concurrent access to the shored database. It will make sure that the result of
transactions running in parallel is identical to the result of some serial execution of the same
transactions.
The Concurrency Control Manager grant locks to different transactions. Concurrency
Control manager is basically a programme.
8.5.1.3 Types of Lock
There are two types of locks that can be implemated on a transaction.
(i) Shared lock : Shared lock is Read-Only lock. If a transaction Ti
has obtained shared
lock on data item A then Ti can read A but cannot modify A. It is denoted by S
and Ti is said to be in Shared lock mode.
(ii) Exclusive lock : Exclusive lock is Read-Write lock. If a transaction Ti
has obtained
exclusive lock on data item A then Ti can both read and modify (write) A. It is
denoted by X and Ti is said to be in Exclusive lock mode.
8.5.1.4 Compatible Lock Modes
Suppose transaction Ti has obtained a lock on data item V in mode A. If transaction Tj
can also obtain lock on V in mode B then, A is compatible with B or these two lock modes
are compatible. Matrix of compatibility of shared and Exclusive lock modes are shown in
Figure 8.6.
S X
S Possible Not possible
X Not possible Not possible
FIGURE 8.6. Compatibility of shared and exclusive lock mode.
The table shows that if a transaction Ti
has shared lock on data item V then any
other transaction Tj
can obtain only shared lock on V at the same time. All other possible
combinations are incompatible.
S - lock(A) — Shared lock on data item A
X - lock(A) — Exclusive lock on data item A
read(A) — Read operation on A
354 Introduction to Database Management System
write(A) — Write operation on A
unlock(A) — A is free now.
A transaction Ti
can hold only those items which are used in it. If any data item V is
not free then Ti
is made to wait until V is released. It is not desirable to unlock data item
immediately after its final access.