Docsity

Mobile Computing - TRANSACTION CONCEPT, Study notes of Mobile Computing

Toggle sidebar
bg1
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)
pf3

Partial preview of the text

Download Mobile Computing - TRANSACTION CONCEPT and more Study notes Mobile Computing in PDF only on Docsity!

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)

Forms of Transaction

  • (^) Forms of Transaction: - The simplest form of transaction is flat transaction. A flat transaction can be considering as a sequential computer program. Its disadvantage is that it cannot support for long transaction efficiently coz if failure happens during its execution then it has to rollback to is initial state & wastes all of useful computation.
  • (^) Nested Transaction is a more flexible transaction mode. This model is a tree of transaction is refined into many smaller flat transaction called sub transactions. These sub transactions can execute concurrently.
  • (^) We define a model that ensure consistency account for mobility & provide for recovery. The user of mobile host need to have an idea of the validity of the data they read, some assurance that their updates will be saved & understanding of the into of their work with the work of the other concurrently accessing the same data.
  • (^) Modeling Transaction : - A mobile transaction is a distributed transaction where some part of the computation are executed on mobile & some part on non-mobile host.
  • (^) Wireless connection are expensive. Finally mobile computation is more error prone because of frequent disconnection & because mobile host are more susceptible to accident than fixed host. Traditionally transaction are modeled as a sequence of read & write operation which have a structure with a single begin & a single abort or commit points. In mobile environment, transaction model are complex, long-lived activities that involves multiple & heterogeneous database.
  • (^) We model a transaction using an open-nested model-
  • (^) Transaction Composed No. of related No. of user defined
  • (^) of Sub transaction to dependences
  • Example – Transaction that are executed as alternative when a specified transaction fail to commit.