Question: Q 4 . Consider the following two transactions: Tis: read ( A ) . read ( B ) . i f A = 0 then
Q Consider the following two transactions:
Tis: read
read
then ; :
write
I : read;
read:
then : :
write
Let the consistency requirement be with as the initial values.
a Show that every serial exceution involving these two transactions preserves the eonsistency of the database.
b Show a concurrent execution of and that produces a nonserializable schedule.
c Is there a concurrent execution of and that produces a serializable schedule?
d Add lock and unlock instructions to transactions and so that they observe the twophase locking protocol. Can the execution of these transactions result in a deadlock?
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
