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?
View worked solution
Answer: A
In database management systems, two operations in a schedule are said to conflict if and only if they satisfy all of the following three conditions:
- They belong to different transactions.
- They access the same data item (in this case, ).
- At least one of the operations is a write operation.
Let's analyze the conflict status for different combinations of operations on data item by transactions and :
- Read-Read (RR): Both and only read . Since neither operation is a write, they do not conflict.
- Read-Write (RW) or Write-Read (WR): One transaction reads and the other writes . Since one operation is a write, they conflict.
- Write-Write (WW): Both transactions write . Since at least one (in this case, both) is a write operation, they conflict.
Therefore, for and to not conflict on , both transactions must only read .
Hence, Option A is the correct statement.
Free practice · Your answers on this page are not saved.
