Which of the following statement is/are incorrect?A:A schedule followi...
Basic two phase locking protocol ensures only conflict serializability and strict two phase locking protocol ensures recoverability as well. So statement A is correct. Checkpoints are inserted to minimize the task of undo-redo in recoverability. So, statement B is not correct. Hence correct option B is correct choice.
View all questions of this test
Which of the following statement is/are incorrect?A:A schedule followi...
< b="" />Incorrect Statement:< />
The incorrect statement is:
B: Checkpoint in schedules are inserted to ensure recoverability.
< b="" />Explanation:< />
1. A schedule following strict two-phase locking protocol is conflict serializable as well as recoverable:
- This statement is correct. The strict two-phase locking (2PL) protocol ensures conflict serializability by requiring that a transaction acquire and hold all its exclusive locks until it is ready to release them, and by forcing a transaction to release all its locks before acquiring any new locks. The 2PL protocol also ensures recoverability by ensuring that a transaction's updates are not visible to other transactions until it commits, and by allowing for the undoing of a transaction's updates if it aborts.
2. Checkpoints in schedules are inserted to ensure recoverability:
- This statement is incorrect. Checkpoints in schedules are not inserted to ensure recoverability. Rather, checkpoints are used to improve the efficiency of recovery processes. A checkpoint is a point in a schedule where the system records the state of the database and the progress of transactions. When a failure occurs, the system can use the information recorded at the last checkpoint to reduce the amount of work required for recovery. By starting the recovery process from the last checkpoint, the system can avoid processing transactions that were already committed or aborted before the failure.
< b="" />Conclusion:< />
Based on the above explanation, the incorrect statement is B: Checkpoint in schedules are inserted to ensure recoverability.