1A transaction can be defined as a group of tasks.
2A single task is the minimum processing unit which cannot be
3divided further.
4
5EG:-
6A’s Account
7--------------------------
8Open_Account(A)
9Old_Balance = A.balance
10New_Balance = Old_Balance - 500
11A.balance = New_Balance
12Close_Account(A)
13
14
15B’s Account
16---------------------------
17Open_Account(B)
18Old_Balance = B.balance
19New_Balance = Old_Balance + 500
20B.balance = New_Balance
21Close_Account(B)