GATE CS Transactions and Concurrency Control questions
Practise Transactions and Concurrency Control questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Consider concurrent execution of two transactions and in a DBMS, both of which access a data object . For these two transactions to not conflict on , which one of the following statements must be true?
A schedule of three database transactions , and is shown. and denote read and write of data item by transaction . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back? …
Consider the database transactions T1 and T2 , and data items X and Y . Which of the schedule(s) is/are conflict serializable? …
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account attempted simultaneous transfers of Rs. each from account to account . Both transactions read the same value, Rs., as the initial balance in and were allowed to go through. was credited Rs. …
Consider the following read-write schedule over three transactions , and , where the subscripts in the schedule indicate transaction IDs: Which of the following transaction schedules is/are conflict equivalent to …
Once the informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
Which of the following statements about the Two Phase Locking () protocol is/are TRUE?
Let and denote read and write operations on a data element by a transaction respectively. Consider the schedule with four transactions. Which one of the following serial schedules is conflict …
Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?
Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules. Which one of the following options is correct?
Let be the following schedule of operations of three transactions , and in a relational database system: Consider the statements and below: : is conflict-serializable. : If commits before finishes, then …
Consider the following two statements about database transaction schedules: Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable. Timestamp-ordering concurrency control protocol with Thomas’ Write Rule can generate view serializable schedules that are not conflict serializable Which of the above statements …
In a database system, unique timestamps are assigned to each transaction using Lamport's logical clock. Let and be the timestamps of transactions and respectively. Besides, holds a lock on the resource and has requested a conflicting lock on the same resource The following …
Two transactions and are given as where denotes a operation by transaction on a variable and denotes a operation by transaction on a variable . The total number of conflict serializable …
Consider the following two phase locking protocol. Suppose a transaction accesses (for read or write operations), a certain set of objects . This is done in the following manner: . acquires exclusive locks to in increasing order of their addresses. . The required …
Which one of the following is NOT a part of the ACID properties of database transactions?
Consider the following database schedule with two transactions and . Where denotes a read operation by transaction on a variable , denotes a write …
Suppose a database schedule involves transactions . Construct the precedence graph of with vertices representing the transactions and edges representing the conflicts. If is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Consider a simple checkpointing protocol and the following set of operations in the log. (start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7); (checkpoint); (start, T2); (write, T2, x, 1, 9); (commit, T2); (start, T3); (write, T3, z, 7, 2); If a crash happens now and the system tries to recover using both undo and redo …
Consider the following transaction involving two bank accounts and . read(x); x:=x-50; write (x); read(y); y:=y+50; write(y) The constraint that the sum of the accounts and should remain constant is that of
