Arvind Yadav
What is a deadlock and what is a live lock? How will you go about resolving deadlocks?

What is a deadlock and what is a live lock? How will you go about resolving deadlocks?

By Arvind Yadav in SQL on Feb 24 2022
  • Gajendra Jangid
    Mar, 2022 10

    A deadlock occurs when two or more processes waits for a resource that is acquired by or is under the control of another process. A live lock is similar to a deadlock except the process states keeps changing. The result of such state is that none of the process will be complete.

    • 1
  • Jay Pankhaniya
    Feb, 2022 28

    Deadlock is the situation where one or more processes wait for the resources hold by other process.
    Live Lock is the situation same like Deadlock except the Process states keep change.

    To Resolve this situation you have to abort one of the process which is waiting for the resource and you can successfully resolve the situation. (ex. Process are A wait for printer hold by B, B wait for the scanner hold by C, C waits for the Files hold by A. So, here it checks the priority and abort the process of C and release the Scanner hold by C which completes the process of B and then B release printer after completing scanning and then A will complete it’s process and release files then C can request for the resources required for it to process) .

    • 1
  • Rajeev Kumar
    Mar, 2023 9

    Deadlock is the situation where one or more processes wait for the resources hold by other process.
    Live Lock is the situation same like Deadlock except the Process states keep change.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS