5. Show that the two-phase locking protocol ensures conflict serializability,and that transactions can be serialized according to their lock points. Answer



Download 447.03 Kb.
View original pdf
Page9/13
Date08.04.2022
Size447.03 Kb.
#58573
1   ...   5   6   7   8   9   10   11   12   13
nanopdf.com 151-show-that-the-two-phase-locking-protocol-ensures-conflict
Answer: Take a system with 2 trees We have 2 transactions, T1 and T2. Consider the following legal schedule This schedule is not serializable.
15.23 Under what conditions is it less expensive to avoid deadlock than to allow deadlocks to occur and then to detect them
Answer: Deadlock avoidance is preferable if the consequences of abort are serious (as in interactive transactions, and if there is high contention and a resulting high probability of deadlock.
15.24 If deadlock is avoided by deadlock-avoidance schemes, is starvation still possible Explain your answer.

Download 447.03 Kb.

Share with your friends:
1   ...   5   6   7   8   9   10   11   12   13




The database is protected by copyright ©ininet.org 2024
send message

    Main page