Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q . 2 Set. ( B ) i ) Consider a variant of the tree protocol called the forest protocol. The database is organized as
QSet. B
iConsider a variant of the tree protocol called the forest protocol. The database is organized as a forest of rooted trees. Each transaction Ti must follow the following rules:
The first lock in each tree may be on any data item.
The second, and all subsequent, locks in a treemay be requested only if the parent of the requested node is currently locked.
Data items may be unlocked at any time.
A data item may not be relocked by after it has been unlocked by
Show that the forest protocol does not ensure serializability. marks
ii
Consider the following two transactions:a Add lock and unlock instructions to transactions T and T so that they observe the twophase locking protocol. marksb Can the execution of these transactions result in a deadlock? marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started