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

Answer Posted / nivethitha somu

Livelock : A condition that occurs when two or more
processes continually change their state in response to
changes in the other processes. The result is that none of
the processes will complete. An analogy is when two people
meet in a hallway and each tries to step around the other
but they end up swaying from side to side getting in each
other's way as they try to get out of the way.

Deadlock : A condition that occurs when two processes are
each waiting for the other to complete before proceeding.
The result is that both processes hang. Deadlocks occur most
commonly in multitasking and client/server environments.
Ideally, the programs that are deadlocked, or the operating
system, should resolve the deadlock, but this doesn't always
happen.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define indexes?

608


Can binary strings be converted into numeric or float data types?

560


How to retrieve field values using mssql_result()?

632


What number aggregate functions are accessible there in sql?

593


What are the parts of a function?

523






What do you mean by subquery?

587


What is equi join with example?

557


What are system databases into sql server (2005/2008) : sql server database administration

573


How to get a list of columns using the "sys.columns" view in ms sql server?

562


How to Update from select query in sql server?

550


How to execute the cursor queries with "open" statements?

615


In case you have filters in your report, when filters will be applied in cached report instance?

81


What is the difference between function and stored procedure in sql server?

490


What is the difference between composite index and covering index?

513


What command is used to delete a table from the database in the sql server and how?

545