Home » Database » Database miscellaneous » Question

Database miscellaneous

  1. Consider the following partial Schedule S involving two transactions T1 and T2. Only the read and the write operations have been shown. The read operation on data item P is denoted by read (P) and the write operation on data item P is denoted by write (P).

    Suppose that the transaction T1 fails immediately after time instance 9. Which one of the following statements is correct?

    1. T2 must be aborted and then both T1 and T2 must be re – started to ensure transaction atomicity
    2. Schedule S is non – recoverable and cannot ensure transaction atomicity
    3. Only T2 must be aborted and then re – started to ensure transaction atomicity
    4. Schedule S is recoverable and can ensure atomicity and nothing else needs to be done
Correct Option: B

T2 is reading the value written by T1 and getting committed before T1 commits. So it is non-recoverable schedule.



Your comments will be displayed only after manual approval.