RDBMS Basics Practice Test: Concurrency Control — Flashcards | Databases | FatSkills

RDBMS Basics Practice Test: Concurrency Control — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

Quiz on lock and timestamp based protocols, deadlock handling, multiversion schemes, validation based protocols, insert and delete operations.

Concurrency control in a relational database management system (RDBMS) manages operations that happen simultaneously so that they don't conflict with each other. This ensures that data integrity is maintained when updates are made to the database in a multi-user environment

Here are some concurrency control mechanisms:
Optimistic concurrency control (OCC):
Allows multiple transactions to read and modify the same data without locking or blocking each other, as long as they don't conflict. OCC assumes that conflicts are rare and can be detected and resolved at the end of each transaction.
Timestamp-based protocol: Every transaction has a timestamp associated with it, and the ordering is determined by the age of the transaction. For example, a transaction created at 0002 clock time would be older than all other transactions that come after it.
Multiversion concurrency control (MVCC): aEvery database record has a version number. Concurrent reads happen against the record with the highest version number. 
 

Related Test: DBMS Basics Practice Test: Concurrency Control

1 of 60 Ready
If a transaction has obtained a __________ lock, it can read but cannot write on the item
Shared mode
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password