Assignment 2
Assignment 2
Serial schedule both by definition and execution means that the transactions
bestowed upon it will take place serially, that is, one after the other. This leaves no
place for inconsistency within the database. But, when a set of transactions are
scheduled non-serially, they are interleaved leading to the problem of concurrency
within the database. Non-serial schedules do not wait for one transaction to
complete for the other one to begin. Serializability in DBMS decides if an
interleaved non-serial schedule is serializable or not.
Example of Serializability
wherein the operations on data item A (A1 and A2) are performed first and
later the operations on data item B (B1 and B2) are carried out serially.
from both Schedule2 and Schedule1 are equivalent to one another In a nutshell, a
Answer Q2:
What is the importance of concurrency control?
Concurrency controls prevent data integrity problems, which can arise when two
update processes access the same data item at the same time. Access controls
restrict updating of the database to authorized users, and controls such as
passwords prevent the inadvertent or unauthorized disclosure of data from the
database.