Consider the following transactions with data items and initialized to zero:
Any non-serial interleaving of T1 and T2 for concurrent execution leads to
View worked solution
Answer: B
To determine the conflict serializability of any non-serial interleaving of transactions and , we identify their conflicting operations on shared data items and :
- :
- :
The conflicting pairs of operations are:
- and on data item
- and on data item
For any schedule to be non-serial:
- cannot completely finish before starts. Thus, the first operation of , which is , must execute before the last operation of , which is . This write-after-read conflict () creates a precedence edge: .
- Similarly, cannot completely finish before starts. Thus, the first operation of , which is , must execute before the last operation of , which is . This write-after-read conflict () creates a precedence edge: .
Since any non-serial interleaving forces both edges and , the precedence graph will always contain a cycle. Therefore, any non-serial interleaving is not conflict serializable.
Free practice · Your answers on this page are not saved.
