Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Which of the following is/are true in case of tree locking?


A. It ensures shorter waiting times.

B. It ensures freedom from deadlock.

C. Transaction can lock data items earlier.

D. It does not ensure greater amount of concurrency.






Solution

Tree locking protocol (graph-based protocol) rules:


• The first lock may be on any node.

• A transaction may lock a node only if it already holds a lock on the parent.

• Nodes may be unlocked anytime but cannot be relocked.


Properties:


• Deadlock cannot occur because locking follows a hierarchical order.

• Transactions can lock data items earlier since unlocking can happen anytime.


Thus:


B → True

C → True



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...