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 / swapna

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 process.

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

Is This Answer Correct ?    87 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a view and a stored procedure?

1017


What is the order by used for?

1004


How to create indexed view?

1026


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1891


Do you know what are the properties of the relational tables?

1012


What is nolock hint in sql server 2008

1106


What are the restrictions applicable while creating views? : SQL Server Architecture

1008


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

1083


How to find table changes in sql server?

1096


What type of Index will get created after executing the above statement?

1076


How can sql server instances be hidden?

928


Explain syntax for viewing, dropping and disabling triggers?

931


What is policy management?

977


What is @@error in sql?

1044


How is foreign key related to primary key?

952