in Databases retagged by
300 views
1 vote
1 vote

A schedule with two transactions T1 and T2 is as mentioned below:

$\begin{array}{|c|c|} \hline T1 & T2 \\ \hline \text{read(A)} & {} \\  \hline \text{write(A)} & {} \\ \hline {} & \text{read(A)} \\ \hline {} & \text{commit} \\ \hline \text{read(A)} & {} \\ \hline \text{abort} & {} \\ \hline \end{array}$

The above schedule is an example of:

  1. Cascade-less schedule
  2. Recoverable schedule
  3. Both Cascade-less and Recoverable schedule
  4. Irrecoverable schedule
in Databases retagged by
by
300 views

1 comment

Irrecoverable; since a dirty read has been performed.

Not cascadeless, because a transaction read an item from an uncommitted transaction.

 

 

0
0

1 Answer

2 votes
2 votes
Best answer

T2 reads a value which is written by T1, and commits before T1. So, if T1 faces any error and aborts after T2 commits (as in the last line of schedule), T1 will be rolled back, but T2 is not able to roll back since it is already committed.

So, we have an irrecoverable schedule

selected by
Answer:

Related questions