Question 11
EasyIn two-phase locking, what happens during the growing phase?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
In two-phase locking, what happens during the growing phase?
The transaction writes to the log only
The transaction is restarted
The transaction releases locks but acquires none
The transaction acquires locks but releases none
Sign up free to see the answer and a step-by-step explanation.
In two-phase locking, what happens during the shrinking phase?
The database shrinks in size
The transaction deletes rows
The transaction acquires more locks
The transaction releases locks and cannot acquire new ones
Sign up free to see the answer and a step-by-step explanation.
What is the inconsistent-analysis (incorrect summary) problem?
An index becomes too large
A transaction computing a total reads some items before and some after another transaction updates them
A query has a syntax error
Two users choose the same password
Sign up free to see the answer and a step-by-step explanation.
In timestamp-based concurrency control, what is a transaction's timestamp?
The user's login time
The time of the last backup
A unique number showing when the transaction started, used to order transactions
The time the database was installed
Sign up free to see the answer and a step-by-step explanation.
What is optimistic concurrency control?
Transactions never conflict
Every item is locked before use
Transactions run without locks and are checked for conflicts when they try to commit
Only one transaction runs at a time
Sign up free to see the answer and a step-by-step explanation.
What is pessimistic concurrency control?
Ignoring conflicts
Checking for conflicts only at commit
Locking data before it is accessed, assuming conflicts are likely
Running every transaction twice
Sign up free to see the answer and a step-by-step explanation.
What is a lock upgrade?
Releasing all locks
Converting a shared lock on an item into an exclusive lock
Locking a whole database
Buying a better lock
Sign up free to see the answer and a step-by-step explanation.
What does the lock manager's lock table record?
The history of SQL errors
Which locks are held and which are being waited for, on each item
The database's passwords
The rows of every table
Sign up free to see the answer and a step-by-step explanation.
In a locking system, what is starvation?
A transaction finishes too quickly
A transaction runs out of memory
A transaction waits indefinitely because others keep getting the lock first
The database has no data
Sign up free to see the answer and a step-by-step explanation.
In a DBMS, what is a wait-for graph used for?
Sorting query results
Planning backups
Drawing ER diagrams
Detecting deadlocks among transactions
Sign up free to see the answer and a step-by-step explanation.