ADBMS: LOCK BASED

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:38 AM on 6/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

lock

A _____ in DBMS controls concurrent access, allowing only one

transaction to use a data item at a time. This ensures data integrity

and prevents issues like lost updates or dirty reads during

simultaneous transactions.

2
New cards

Lock Based Protocol

________ in DBMS ensure that a

transaction cannot read or write data until it gets the

necessary lock

3
New cards

Shared Lock

is also known as Read-only lock

4
New cards

Shared Lock

As the name suggests it can be shared between transactions because while holding this lock the transaction does not have the permission to update data on the data item

5
New cards

lock-S instruction.

lock S is requested using ____

6
New cards

Exclusive Lock

Data item can be both read as well as written. This is Exclusive and cannot be held simultaneously on the same data item.

7
New cards

lock-X instruction

X-lock is requested using ____

8
New cards

True

True / False

If a Transaction has a Read lock on a data item, it can read the item but not update it.

9
New cards

False

True/False

If a transaction has a Read lock on the data item, other transaction can obtain Read Lock on the data item including Write Locks.

10
New cards

True

True/False

If a transaction has a write Lock on a data item, it can both read and update the data item.

11
New cards

False

True/False

If a transaction has a write Lock on the data item, then other transactions can obtain either a Read lock or write lock on the data item.

12
New cards

Exclusive Lock

the Write Lock is also known as

13
New cards

Shared Lock

Read lock is also known as

14
New cards

shared locks

Multiple transactions can hold _____ on the same data item simultaneously

15
New cards

exclusive lock

If a transaction holds an _____ on a data item, no other transaction can hold any type of lock on that item.

16
New cards

Concurrency Control Protocol

are the methods used to manage

multiple transactions happening at the same time. They ensure that

transactions are executed safely without interfering with each other,

maintaining the accuracy and consistency of the database.

17
New cards

data conflicts, lost updates or inconsistent data

These protocols prevent issues like _____, _____ or _____by controlling how transactions access and modify data.

18
New cards

Simplistic Lock Protocol

Pre Claiming Lock Protocol

Two Phase Locking Protocol

Strict Two Phase Locking Protocol

Types of Lock-Based Protocols

19
New cards

Simplistic Locking Protocol

It is the simplest method for locking data during a transaction

20
New cards

Simplistic Lock Protocol / Simple Lock Based Protocol

enable all transactions to obtain a lock on the data before inserting,

deleting, or updating it. It will unlock the data item once the transaction is

completed.

21
New cards

Pre Claiming Lock Protocol

avoids deadlocks by requiring a

transaction to request all needed locks before it starts. It runs only if all

locks are granted; otherwise, it waits or rolls back.

22
New cards

Two Phase Locking Protocol

A transaction is said to follow the Two-Phase Locking protocol if Locking

and Unlocking can be done in two phases: Growing Phase and Shrinking Phase

23
New cards

Growing Phase

New locks on data items may be acquired but none can be released.

24
New cards

Shrinking Phase

Existing locks may be released but no new locks can be acquired.

25
New cards

Strict Two-Phase Locking

_____ requires that in addition to the 2-PL all

Exclusive(X) locks held by the transaction be released until after the

Transaction Commits.

26
New cards

Deadlock

both transactions are waiting for resources held by the

other, preventing either from proceeding with their execution.

27
New cards

Starvation

_____ is also possible if concurrency control manager is badly designed. For example: A transaction may be waiting for an X-lock on an item, while a sequence of other transactions request and are granted an S-lock on the same item. This may be avoided if the concurrency control manager is properly designed.