Transactions: Practice Exercises
Transactions: Practice Exercises
17
Transactions
Practice Exercises
17.1 Suppose that there is a database system that never fails. Is a recovery manager
required for this system?
17.2 Consider a file system such as the one on your favorite operating system.
a. What are the steps involved in the creation and deletion of files and in
writing data to a file?
b. Explain how the issues of atomicity and durability are relevant to the
creation and deletion of files and to writing data to files.
17.3 Database-system implementers have paid much more attention to the ACID
properties than have file-system implementers. Why might this be the case?
17.4 What class or classes of storage can be used to ensure durability? Why?
17.5 Since every conflict-serializable schedule is view serializable, why do we em-
phasize conflict serializability rather than view serializability?
17.6 Consider the precedence graph of Figure 17.16. Is the corresponding schedule
conflict serializable? Explain your answer.
17.7 What is a cascadeless schedule? Why is cascadelessness of schedules desir-
able? Are there any circumstances under which it would be desirable to allow
noncascadeless schedules? Explain your answer.
17.8 The lost update anomaly is said to occur if a transaction Tj reads a data item,
then another transaction Tk writes the data item (possibly based on a previous
read), after which Tj writes the data item. The update performed by Tk has
been lost, since the update done by Tj ignored the value written by Tk .
59
60 Chapter 17 Transactions
T1 T2
T4 T3
T5