Question: Question 6 : Transactions ( 1 5 marks ) Let transactions T 1 , T 2 and T 3 be defined to perform the following
Question : Transactions marks
Let transactions and be defined to perform the following operations:
T: Add one to
T: Double
T: Display the current value of on the screen and then set to one
where is some numeric item in the database
a Suppose transactions T T and T are allowed to execute concurrently. If A has
initial value zero, how many possible correct results are there? List them.
b Suppose the internal structure of T T and T is as indicated in the following
pseudocode. If A has initial value zero, is there any interleaved schedules that in
fact product a correct result and yet is not serializable? Explain your answer.
Question continued
c Are there any schedules that are in fact serializable but could not be produced if
all three transactions obeyed the twophase locking protocol? Show your work.
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
