Lab-12 - Problems On Serializability, Conflict Serializability, View Serializability
Lab-12 - Problems On Serializability, Conflict Serializability, View Serializability
• Scenario: Simulate a schedule where two transactions read and update the Inventory
table.
• Tasks:
1. Create a precedence graph for the schedule.
2. Check for cycles to determine conflict serializability.
3. Suggest improvements if it is not serializable.
• Scenario: Two transactions work on OrderDetails, where one reads data written by
the other.
• Tasks:
1. Simulate a schedule where one transaction commits before the other.
2. Modify the schedule to make it recoverable.
3. Demonstrate the rollback behavior in case of failure.
• Scenario: Two transactions update and read data in the EmployeeSalary table.
• Tasks:
1. Simulate a cascading schedule.
2. Rework the schedule to make it cascadeless.
3. Validate the results.
• Scenario: Two transactions access Orders and Payments tables, creating a deadlock.
• Tasks:
1. Simulate a deadlock scenario with transactions holding conflicting locks.
2. Detect deadlocks using a wait-for graph.
3. Resolve the deadlock and implement prevention strategies.
Problem 9: Timestamp Ordering Protocol