Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / kkkkkk

Deadlock is a situation when two processes, each having a
lock on one piece of data, attempt to acquire a lock on the
other's piece. Each process would wait indefinitely for
the other to release the lock, unless one of the user
processes is terminated. SQL Server detects deadlocks and
terminates one user's processDeak Lock is a situation when two or more process
continuous working and each having a lock on a particular
record but at a time only one can lock a particular and the
other one will go to dead lock.

A livelock is one, where a request for an exclusive lock
is repeatedly denied because a series of overlapping shared
locks keeps interfering. SQL Server detects the situation
after four denials and refuses further shared locks. A
livelock also occurs when read transactions monopolize a
table or page, forcing a write transaction to wait
indefinitely.A human example of live lock would be two people who meet
face-to-face in a corridor and each moves aside to let the
other pass, but they end up moving from side to side without
making any progress because they always move the same way at
the same time and never cross each other. This is good
example of live lock.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is msdb database? : SQL Server Architecture

1056


What is 2nf normalization?

965


Define full outer join in sql server joins?

909


Explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

1017


How to generate random numbers with the rand() function in ms sql server?

1044


how many clustered indexes can be created on a table? : Sql server database administration

1063


How to verify a user name with sqlcmd tool?

1017


What are the properties of the transactions?

1052


How to use “drop” keyword in sql server and give an example?

1088


Explain the steps needed to create a scheduled job?

879


How to disable triggers using "disable trigger"?

996


What is difference between line feed ( ) and carriage return ( )?

852


Difference between report and query parameter. Why do we need different type of parameter?

901


What is raid, and how it can influence database performance?

1003


What are relationships and mention different types of relationships in the dbms

908