Is the database schedule is recoverable? Recoverable schedule example problem, Practice problem based on recoverable schedules.
Recoverable schedule - solved exercise
Question:
Is the folloiwng schedule S is a
recoverable schedule?
Sl.No.
|
T1
|
T2
|
1
|
|
W(A)
|
2
|
W(B)
|
|
3
|
W(A)
|
|
4
|
|
R(B)
|
5
|
Commit
|
|
6
|
|
Commit
|
A recoverable schedule:
A schedule is
said to be a recoverable schedule if and only if each transaction commits
only after all transactions from which it has read has committed.
|
Solution:
In the given schedule, transaction T2
(refer serial number 4) reads the value of data item B that was written
by transaction T1 (refer serial number 2). But, T1 (refer
serial number 5) has committed before T2 (refer serial number 6). Hence,
this schedule is recoverable schedule.
Is
the schedule a serializable? Please work on this.
***********
Go to Transaction management in DBMS page
Go to Important keywords in DBMS page
Recoverable schedules in concurrent schedules
what is recoverable schedule
define recoverable schedules
recoverable schedules example
how to identify a recoverable schedule
check for recoverability in concurrent schedules
No comments:
Post a Comment