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 deadlock and how to avoid the deadlocks.

Answer Posted / dba

P1 has lock on R1
P2 has lock on R2
P1 requests lock on R2
P2 Requests lock on R1

Where P & R are corresponding processes and resources.

Deadlock consists of two processes requesting locks on
resources thus, blocking each other.

You can avoid Deadlocks:
Access objects in the same order
Use lower isolation levels
Keep Transactions short and in one batch
Avoid user interactions in transaction
Use bound connections

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between equi join and natural join?

1041


What is cursors? And what are the different types of cursor?

1144


Explain how to use linked server?

992


How do I setup a local sql server database?

1010


What are the main differences between #temp tables and @table variables and which one is preferred?

1083


What is the difference between left and right outer join?

1063


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

1264


What is Dependency Injection and provide example?

1118


Explain the usage of floor function in sql server.

965


What is federation member?

116


What is function of ROLLUP ?

1086


Where cross join is used?

964


What is scan table/view and seek table/view when its occurs? : sql server database administration

1052


Can we join two tables without primary key?

1054


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

954