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 is an example of a primary key?

694


How to transfer data from a cursor to variables with a "fetch" statement?

767


How to list all user defined functions in the current database?

694


What should be the fill factor for indexes created on tables? : sql server database administration

817


What is the significance of null value and why should we avoid permitting null values?

727






Detail about the hardware which is supported by SQL server?

758


What is bcp? When does it used?

730


What is the guest user account in sql server? What login is it mapped to it? : sql server security

762


What are the security related catalog views? : sql server security

704


Does partitioning improve performance sql server?

650


How to insert multiple rows with a subquery?

724


What do we have to check in database testing?

768


Difference Between ORDER BY Clause and GROUP BY Clause in SQL?

810


What is cursor in ms sql server?

767


what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?

730