

These can be the lost update problem in which the updated value of one transaction is lost because the other transaction reads the value before its update is permanently recorded in the database and hence the final value is also incorrect. When transactions execute in a concurrent manner, several problems can occur.

Isolation, that is a transaction must appear as it is executing in isolation from the other transactions and should not be interfered by them.ĭurability that is the changes applied to the database must be permanent and must not be lost due to any one or the other failures. Consistency preservation that is a transaction satisfies this property of and only if it takes a database from one consistent state to another. A transaction has certain basic desirable properties called the ACID properties that must be enforced by concurrency control or recovery methods of DBMS.Ītomicity, which states that a transaction is an atomic unit and must either be executed completely or not at all. These can be systems in banks, ticket reservation systems and so on which use the concept of multiprogramming to carry out transactions. There are various examples of such transactions. And hence concurrent execution of commands is actually interleaved. A process is resumed from where it was suspended, whenever it gets is chance to use the CPU again. In this, the CPU executes some commands from one process, then suspends the process and executes commands from some other process and so on. Such multiprogramming operating systems use the concept of multiprogramming. of users to carry out transactions concurrently which is in contrast to the single-user DBMS which allows only one user to access the CPU at a time.

Multiprogramming operating systems allow a large no. If such operations only retrieve data and do not update the database, then such operations are known as read-only transaction. A transaction may be specified between begin transaction and end transaction boundaries. It basically includes insertion, deletion and modification operations that change the state of a database. A transaction involves activities such as read and writes operations that change the stored data. A database management system is basically a system or a collection of programs that enable the creation and maintenance of a database. A database is basically a collection of records or data that have an implicit meaning, for easy retrieval. Before we go any further, let us first understand what a database is. ? Processing basically points to anything that leads to a change in state.
