InterviewSolution
| 1. |
Explain transaction atomicity in context to OS. |
|
Answer» The transaction process can be thought of as a series of read and write activities on data, followed by a commit operation. Transaction atomicity means that if a transaction fails to finish successfully, the transaction must be aborted, and all modifications made during execution must be rolled back. It indicates that a transaction must seem LIKE a SINGLE, non-divisible process. This guarantees that the integrity of the data being updated is preserved. If the concept of atomicity is not applied in transactions, every transaction that is CANCELLED in the middle may RESULT in data inconsistency because two transactions may be sharing the same data value. |
|