In: Computer Science
What are the concurrency-control manager and recovery manager, respectively? What are their purpose?
Before discussing, what are the concurrency-control manager and recovery manager, respectively? What are their purpose?
We should know some of basic terminologies like what is a Transcation, what are ACID properties etc.
A transcation is that smallest unit of work in DMBS that occurs when we perform certain operation on data of relational data bases.
Or we can define a Transaction as a single logical unit of work that accesses and may modifies the contents of a database. Transactions will access and modify the data using read and write operations. In order to maintain integrity in a database, we have to follow certain properties before and after the transaction,these properties are nothing but ACID properties.
In DBMS if multiple transcations are executing concurrently then there is a chance that the data that they are sharing may be gone into an inconsistant state.
So to ensure the integrity or consistency of the data during a transaction we should go for ACID properties:
ACID Properties:
To ensure the integrity or consistency of the data during a transaction,all database systems has to maintain the ACID properties:
Note : If a transcation fullfill the Atomicity, Isolation and Durability propertiy it will automatically ensures the Consistency property!
Now we will discuss what are the concurrency-control manager and recovery manager, respectively? What are their purpose?
Concurrency-control manager:
Concurrency-control manager is a part of DBMS architecture that emforces the concurrency between multiple transcations occuring in a system.
In a multiprogramming environment there are multiple transactions that can be executed simultaneously,so it is highly recommonded to control the concurrency of transactions. So that the data should not be inconsistent and we ensure atomicity, and isolation properties of a transcation.
Purpose of Concurrency-control manager(CCM):
Recovery manager:
Recovery Manager(RM) is that integral part of DBMS that ensures the Durability property of a transcations.
that is tha main task of RM is to ensures that once a transaction completed successfully, then the changes it has made into the database should be permanentely saved even if there is a system failure.
Apart from this, Recovery Manager(RM) act as a utility that manages the processes by creating backups of all database files and also restoring or recovering files from backups.
Purpose of Recovery-manager(RM):
Here I have try to exlpain the basic concepts of concurrency-control manager and recovery manager alogn with theri purposes, if you are having any doubts or anything else which is not being understood then please feel
free to ask me in comment section. :)
Also please do like the solution if you found that it is helpful to you:)Have a thumbs Up:)