AKU EXAM 2019 DBMS What is two-phase locking protocol ? Explain its working in detail. How can it guarantee serializability ? Let us first understand What is transaction ? A transaction is an executing program that forms a logical unit of Database Processing. A transaction can include one or more database operation like insertion, deletion, modification or retrieval operation. What is schedule ? A schedule is a list of actions like reading, writing, aborting or committing which form a set of transactions and the order in which two actions of a transaction T appear in a schedule must be the same as the order in which they appear in T. As name indicates read operation means it read data item For Example, Read operation in schedule represented as R(A) means read operation performed on data item A. Similarly, Write operation can be represented by W(B) means write operation performed on item B. Abort operation in schedule is used to cancel performed operation in schedule. Similarly, c...
Comments
Post a Comment