
11/27/14 1
TRANSACTION CONCEPT FOR MOBILE
COMPUTING:-
•Transaction Processing is a type of computer processing in which the
computer responds immediately to user requests. Each request is considered
to be a transaction. In other words, Transaction Processing is into processing
that is divided into individual, indivisible operations called, transactions.
Each transaction must succeed or fail as a complete unit; it can not remain in
an intermediate state i.e. during transaction processing either all operation
carried out successfully or all cancelled successfully. A computation
processing is considered as a transaction, if it satisfies ACID properties: =
•Atomicity – Program when finally terminate, has one initial state & one final
state, then this program satisfy the atomicity property; & said to be
committed otherwise it is aborted or rollback.
•Consistency – If a program produces consistent result.
•Isolation – If a program is executing as if it is an only single program.
•Durability – If a program reaches its final state & the result is made available
to the outside world then this result is made permanent.
•Programming model of a Transaction: =
•Begin-transaction ()
•Execution of transaction program
•If (reach- final- state)
•Then
•Commit – work (final- state)
•Else
•Rollback- work (initial- state)