Question: Task 3 ( 2 marks ) Processing database transactions at READ COMMITTED isolation level This task applies to a sample database created in Assignment 2
Task marks
Processing database transactions at READ COMMITTED isolation level
This task applies to a sample database created in Assignment
Consider the following SQL script.Assume that the script listed above is processed as a database transaction T at READ COMMITTED isolation level. mark
Show a sample concurrent execution of a database transaction together with another database transaction also running at READ COMMITTED isolation level, such that the execution ends up in deadlock.
When visualizing a concurrent execution use a technique of twodimensional diagrams presented to you during the lecture classes, for example, see a presentation Transaction Processing in PostgreSQL slide
Explain all details on why a concurrent execution of a transaction T or another database transaction also running at READ COMMITTED isolation level ends up in a deadlock.
mark
Show how a transaction T must be modified to avoid a deadlock. A modified transaction still must be processed at READ COMMITTED level. Write a new version of a transaction T
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
