Lecture - 1 Concurrency Control Introductory Lecture Fall2024

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

What are the four ACID properties of a valid transaction?

Atomic, Consistent, Isolated, Durable.

2
New cards

What does 'Atomic' mean in ACID properties?

A valid transaction is an atomic unit of processing, meaning there is no partial execution.

3
New cards

What is the purpose of the 'Consistent' property in transactions?

It ensures that the database goes from a consistent state to another consistent state after transaction execution.

4
New cards

What does 'Isolated' refer to in terms of transactions?

It means the transaction should not show uncommitted changes to other transactions.

5
New cards

Explain the concept of 'Durable' in ACID properties.

Once a transaction has been committed, its changes are permanent, even in the event of a system failure.

6
New cards

What are the two main files of a database?

Master Data File (MDF) and Log Data File (LDF).

7
New cards

Name a problem caused by concurrent execution of transactions.

Lost Update Problem, Dirty Read Problem, Incorrect Summary Problem, Unrepeatable Read Problem.

8
New cards

What is 'Recoverability' in the context of transaction scheduling?

It determines the ability to recover from a transaction failure without losing valid operations.

9
New cards

Define 'Serializable Schedule'.

A schedule is serializable if it is equivalent to a serial schedule of the same transactions.

10
New cards

What are the primary goals of concurrency control?

To enforce isolation, protect database consistency, and enforce serializability.

11
New cards

What is a lock in concurrency control?

A lock is a flag associated with a data item that controls access to it.

12
New cards

What are the two types of locks mentioned?

Binary Locks and Shared/Exclusive Locks.

13
New cards

What does the Two-Phase Locking Protocol (2PL) involve?

Locking operations precede the first unlock operation and consists of a growing phase followed by a shrinking phase.

14
New cards

What is the main principle of the conservative (static) version of 2PL?

A transaction should acquire all locks before it starts execution.

15
New cards

Can a schedule that follows the basic 2PL guarantee recoverability?

No, basic 2PL does not guarantee recoverability.

16
New cards

What ensures that Strict 2PL maintains serializability?

Strict 2PL does not allow unlocking of exclusive locks until the transaction commits or aborts.

17
New cards

What is the difference between Strict and Rigorous 2PL?

Rigorous 2PL does not release any locks until a commit or abort occurs, ensuring even stricter control over resource management.