1.

In Multiple-granularity Locking, What Is The Difference Between Implicit And Explicit Locking?

Answer»

When a TRANSACTION explicitly locks a NODE in SHARED or exclusive mode, it implicitly locks all the DESCENDENTS of that node in the same mode. The transaction need not explicitly lock the descendent nodes. There is no DIFFERENCE in the functionalities of these locks, the only difference is in the way they are acquired, and their presence tested.

When a transaction explicitly locks a node in shared or exclusive mode, it implicitly locks all the descendents of that node in the same mode. The transaction need not explicitly lock the descendent nodes. There is no difference in the functionalities of these locks, the only difference is in the way they are acquired, and their presence tested.



Discussion

No Comment Found

Related InterviewSolutions