Database Systems: Design Implementation & Management
11th Edition
ISBN: 9781305850378
Author: Coronel
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 10, Problem 10P
Program Plan Intro
Pessimistic locking:
It is one of the locking methods in concurrency control. The lock exists in the transaction until the transaction gets committed or rolled back.
Two-phase locking protocol:
It defined the serializability of the transaction but not prevent deadlocks. The process of locking and unlocking can be done using two phases in this protocol. They are: Growing phase and shrinking phase.
Growing phase:
New lock can be occurred on the transaction without unlocking the data items. The data items are locked in this phase.
Shrinking phase:
This phase used to release all transaction but not provide new lock on the transaction.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
What does it mean for a database to be in a stable state? While the database management system may give a symbolic meaning for a transaction, there is no assurance that it faithfully captures the underlying real-world event. What consequences may be expected if this ban were implemented? Explain your point using an illustration. Should we take at face value the apparent meaning of the phrase "serializable transactions"?
An answer to this question: What does it mean to have a stable database state? There is no guarantee that the transaction's symbolic meaning accurately represents the underlying real-world event provided by the database management system. What would be the ramifications of such a prohibition? Using a specific example, explain what you mean. Does the term "serializable transactions" really mean what it appears to?
What does it mean to have a stable database state? There is no assurance that the symbolic meaning of the transaction adequately captures the underlying real-world event as given by the database management system. What would the consequences of such a restriction be? Explain what you mean with a particular example. Is it true that the word "serializable transactions" means what it seems to mean?
Chapter 10 Solutions
Database Systems: Design Implementation & Management
Ch. 10 - Prob. 1RQCh. 10 - Prob. 2RQCh. 10 - Prob. 3RQCh. 10 - Prob. 4RQCh. 10 - Prob. 5RQCh. 10 - Prob. 6RQCh. 10 - Prob. 7RQCh. 10 - Prob. 8RQCh. 10 - Prob. 9RQCh. 10 - Prob. 10RQ
Ch. 10 - Prob. 11RQCh. 10 - Prob. 12RQCh. 10 - Prob. 13RQCh. 10 - Prob. 14RQCh. 10 - Prob. 15RQCh. 10 - Prob. 16RQCh. 10 - Prob. 17RQCh. 10 - Prob. 1PCh. 10 - Prob. 2PCh. 10 - Prob. 3PCh. 10 - Prob. 4PCh. 10 - Prob. 5PCh. 10 - Prob. 6PCh. 10 - Prob. 7PCh. 10 - Prob. 8PCh. 10 - Prob. 9PCh. 10 - Prob. 10PCh. 10 - Prob. 11P
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- What does it mean for a database to have a stable state? There is no guarantee that the transaction's symbolic meaning accurately represents the underlying real-world event as provided by the database management system. What would be the effects of this restriction? Give a specific illustration of what you mean. Does the term "serializable transactions" really imply what it seems to mean?arrow_forwardWhat is a stable database state, and how is it achieved?The DBMS gives no guarantee that the symbolic notion of the transaction appropriately matches the underlying real-world event.What are the possible consequences of the restriction? Please provide an example. What exactly is meant by "serializable transactions"?arrow_forwardWhen the application of an optimistic approach to concurrency control is implemented, it is frequently observed that transactions experience prolonged durations for completion. Explain?arrow_forward
- When it comes to locking at several levels of granularity, what precisely differentiates implicit locking from explicit locking?arrow_forwardWhat does it mean for a database to be in a stable state? The database management system does not ensure that the transaction's symbolic meaning appropriately reflects the underlying real-world event. What would be the repercussions of such a ban? Using a concrete illustration, clarify your meaning. Does the word "serializable transactions" imply what it seems to mean?arrow_forwardThe DBMS does not guarantee that the semantic meaning of the transaction truly represents the real-world event. What are the possible consequences of that limitation? Give an example.arrow_forward
- Transaction management deals with the problems of always keeping the database in a consistent state even when concurrent accesses and failures occur. Isolation requires that each transaction sees a consistent database at all times and that an executing transaction cannot reveal its results to other concurrent transactions before its commitment. ANSWER If two concurrent transactions access a data item that is being updated by one of them, it is not possible to guarantee that the second will read the correct value. Dirty reads and nonrepeatable reads may occur when one transaction can see intermediate results of another transaction before it has been committed.. Given below are two concurrent transactions T1 and T2 whose balances of amount x (balx) were recorded at times t, between t₁ and tg. As shown in the table below: If these two transactions interfere with each other, fill in the table below by selecting from the drop down list the values of balance X (bal,) at specified times…arrow_forwardIn the event that referential integrity of a database were to be compromised, what would be the resulting consequences? What are the most frequently occurring errors that one tends to commit?arrow_forwardSuppose the deferred modification technique is used in a database.a. Is the old value part of an update log record required any more?Why or why not? b. If old values are not stored in update log records, transaction undo isclearly not feasible. How would the redo phase of recovery have to bemodified as a result?c. Deferred modification can be implemented by keeping updated dataitems in local memory of transactions and reading data items that havenot been updated directly from the database buffer. Suggest how to efficientlyimplement a data item read, ensuring that a transaction sees itsown updates.d. What problem would arise with the above technique if transactions performa large number of updates?arrow_forward
- Can you define a database's stable state? The symbolic significance of the transaction may differ from its actual occurrence in the database management system. To what extent would a prohibition be felt? Give an instance to illustrate your point. Is there really anything to "serializable transactions"?arrow_forwardDifferentiate strict two phase locking protocol and rigorous two phase locking protocol.arrow_forwardIn a database transaction, the two main operations are READ and WRITE operations. So, there is a need to manage these two operations in the concurrent execution of the transactions as if these operations are not performed in an interleaved manner, and the data may become inconsistent. Consider the following scheduled transactions T1, T2, T3, and T4. T1 T2 T3 T4 Reads(X) Writes(X) Reads(Y) Writes(Y) Commit Reads(X) Time Reads(X) Writes(X) Reads(Y) Rollback Writes(Y) Writes(X) Commit • Identify all pair of transactions based on the occurred problem between two transactions (specify pairs, e.g., T1 => T2; T3=> T2; T3 =>T4; etc.). • Specify the name of a problem for each detected pair of transactions. • Justify the occurred problem for each pair of transactions.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning