Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Database zero to hero

Rating
-
Sold
-
Pages
41
Uploaded on
19-07-2024
Written in
2023/2024

Learn Database Management Systems from basic to advance with all theory and SQL codes.

Institution
Course

Content preview

Concurrency Control




Database System Concepts 3rd Edition 16.1 ©Silberschatz, Korth and Sudarshan

, Concurrency Control


Lock-Based Protocols
Timestamp-Based Protocols
Validation-Based Protocols (Optimistic Conc. Control)
Multiple Granularity
Multiversion Schemes
Deadlock Handling
Insert and Delete Operations




Database System Concepts 3rd Edition 16.2 ©Silberschatz, Korth and Sudarshan

, Lock-Based Protocols


One way to ensure isolation is to the data items be accessed in a
mutually exclusive mode.- While accessing the data items by a
transaction, no other transaction can modify that data item.
Lock is the common method- only the transaction allow to access
the data item if it is currently holding a lock on that item
A lock is a mechanism to control concurrent access to a data item
Data items can be locked in two modes
1. Exclusive (X) mode: read/write
2. Shared (S) mode: read
Lock requests are made to concurrency-control manager.
Transaction can proceed only after request is granted.




Database System Concepts 3rd Edition 16.3 ©Silberschatz, Korth and Sudarshan

, Lock-Based Protocols (Cont.)

Lock-compatibility matrix




Two lock modes allows multiple transactions to read a data item
but limits write access to just one transaction at a time.

At any time, Any number of transactions can hold shared locks
on an item




Database System Concepts 3rd Edition 16.4 ©Silberschatz, Korth and Sudarshan

Written for

Institution
Course

Document information

Uploaded on
July 19, 2024
Number of pages
41
Written in
2023/2024
Type
Class notes
Professor(s)
Selva kumar
Contains
All classes

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
defi

Get to know the seller

Seller avatar
defi VIT
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions