Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/lsp4you/public_html/connect.php on line 2 LSP4YOU - Learner's Support Publications

Transactions - Lost Updates

Problems of Concurrent Transactions: Lost Updates
Lost Updates

The correct value of X should be 8000, if the initial value is 10000, but the value of X after the execution of both the transactions is 13000. The update made by T3 has been over written by T4. The root cause of the problem was the fact that both the transactions had read the value of X as 10000. Thus one of the two updates has been lost a lost update has occurred.