UrbanPro
true

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

DBMS

Arijit Dutta
29/05/2018 0 0


2Phase Lock in Distributed Database:

In this protocol, it is required that all the data items must be reached in a mutually independent manner, i.e. when one transaction is performing, then no other transaction should interrupt the process.

It requires both locks and unlocks being done in two phases:

  • Growing Phase: Obtain locks that means when we are writing something on A and B, then we will take locks on A and B like below: W(A) and W(B)
  • Shrinking Phase: Release locks, Unlock the objects in a row like unlock (A) and unlock (B)

But 2 PL won’t be able to solve other problems such as cascading rollback.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Explain The Working Of JVM
1. when we execute the java file, JVM is loaded into memory.2. In JVM, first class loader starts which loads the class into memory, i.e. it divides the code intoRuntime Memory Area.3. Runtime memory consists...

Learning Computer Science
In many of the IT and Computer science formal courses, I have observed many of the topics are taught as independent unrelated threads. In order to get a deeper insight of the computer science, it is very...

Topic - Operators in Python: Ternary Operator & their use with suitable example
Question: What is a ternary operator in Python? Explain with example. Answer: A ternary operator in Python is a shorthand way to perform a simple conditional operation, allowing you to return one of two...

Introduction to Quantum Computing and Quantum Information - What is a qubit ?
The classical two-state system can have two possible states either 1 or 0 whereas a qubit can be in a superposition between 0 and 1 Qubit is generically represented as liner superposition of basis states ...

Why do we study so many subjects in Computer Science/IT B.E/B.Tech, which might not be used in our job?
Have you ever wondered, why did you learn so many subjects and what is the use of them, do you need to know them, will you be using them? Well, my answer is the subjects that you study, covers different...

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more