Two transactions, ( $T_1$ ) and ( $T_2 $), each attempt to transfer ₹10,000 from account ( A ) (initial balance ₹11,000) to account ( B ). Due to inadequate concurrency control, the following interleaving occurs:
$$
\begin{array}{|c|c|}
\hline
T_1 & T_2 \\
\hline
\text{Read}(A) \rightarrow 11000 & \\
& \text{Read}(A) \rightarrow 11000 \\
\text{Write}(A) \leftarrow 11000 - 10000 = 1000 & \\
& \text{Write}(A) \leftarrow 11000 - 10000 = 1000 \\
\text{Write}(B) \leftarrow B + 10000 & \\
& \text{Write}(B) \leftarrow B + 10000 \\
\hline
\end{array}
$$
Both transactions read the same initial value of ( A = 11000 ). Each independently computes the new balance as ( 1000 ) and writes it back. The second write overwrites the first but does not incorporate the effect of both transfers. Consequently:
Only one debit of ₹10,000 is reflected in ( A ) (final balance = ₹1,000),
Both credits are applied to ( B ) (final balance = ₹20,000).
This is a classic lost update anomaly: the update by one transaction on ( A ) is effectively lost due to the concurrent write by the other transaction.
ACID Property Violations
Consistency:
The system invariant “total money conserved” is violated:
$$[
\text{Initial total} = 11000, \quad \text{Final total} = 1000 + 20000 = 21000
]$$
$\color{red} \boxed{ \text{Violated.}}$
Isolation:
The lost update arises because transactions are not isolated; they interfere via uncoordinated reads and writes.
$\color{red} \boxed{ \text{Violated.}}$
Atomicity and Durability:
Both transactions complete all steps and persist their results; no partial execution or data loss is indicated.
$\color{lime} \boxed{ \text{Not Violated.}}$
$$
\boxed{\text{B. Consistency and C. Isolation}}
$$