Question: Answer the following questions: 1. Describe how a typical lock manager is implemented. Why must lock and unlock be atomic operations? What is the difference
Answer the following questions:
1. Describe how a typical lock manager is implemented. Why must lock and unlock be atomic operations? What is the difference between a lock and a latch? What are convoys and how should a lock manager handle them?
2. Compare lock downgrades with upgrades. Explain why downgrades violate 2PL but are nonetheless acceptable. Discuss the use of update locks in conjunction with lock downgrades.
3. Contrast the timestamps assigned to restarted transactions when timestamps are used for deadlock prevention versus when timestamps are used for concurrency control.
4. State and justify the Thomas Write Rule.
5. Show that, if two schedules are conflict equivalent, then they are view equivalent.
6. Give an example of a serializable schedule that is not strict.
7. Give an example of a strict schedule that is not serializable.
8. Motivate and describe the use of locks for improved conflict resolution in Optimistic Concurrency Control.
Step by Step Solution
3.44 Rating (160 Votes )
There are 3 Steps involved in it
The answer to each question is given below 1 A typical lock manager is implemented with a hash table also called lock table with the data object identifier as the key A lock table entry contains the f... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
960-C-S-D (2488).docx
120 KBs Word File
