Transaction Processing Concept
Transaction o The transaction is a set of logically related operation. It contains a group of tasks. o A transaction is an action or series of actions. It is performed by a single user to perform operations for accessing the contents of the database. Example: Suppose an employee of bank transfers Rs 800 from X's account to Y's account. This small transaction contains several low-level tasks: X's Account 1. Open_Account(X) 2. Old_Balance = X.balance 3. New_Balance == Old_Balance - 800 4. X.balance = New_Balance 5. Close_Account(X) Y's Account 1. Open_Account(Y) 2. Old_Balance = Y.balance 3. New_Balance = Old_Balance + 800 4. Y.balance = New_Balance 5. Close_Account(Y) Operations of Transaction: Following are the main operations of transaction: Read(X): Read operation is used to read the value of X from the database and stores it in a buffer in main memory. Write(X): Write operation is us...