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

What are the different editions available in sql server 2000?

584


What are the different ways you can create databases in sql server?

567


How can we improve performance by using SQL Server profiler?

573


How to Update from select query in sql server?

542


What are xml indexes?

527






What are different types of roles provided by ssrs?

112


What is the web service used for reporting services?

98


How many non clustered indexes there can be on table ?

507


Explain the concept of recursive stored procedure.

493


What do you mean by data manipulation language?

586


What are the elements of dbms?

541


how to take backup bcp out for a column in table in sql server?

1638


Where views are stored in sql server?

557


Where cross join is used?

514


Define magic tables in sql server?

566