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

Is sql server 2016 free?

983


What type of locking occurs during the snapshot generation? : sql server replication

1377


What are the different types of collation sensitivity?

1178


What is 3nf normalization form?

1170


How many tables can be joined in SQL Server?

1115


What are secondary xml indexes?

1077


Describe the left outer join & right outer join. : sql server database administration

1037


Which is faster statement or preparedstatement?

1003


What is a View ? Can we insert, Update and delete a view?

1064


What is dml command?

1020


How do I create an extended event in sql server?

1005


What is dknf in normalization form?

1114


Data table as parameter in sql server?

1107


What does dml stand for?

998


Is sql server implemented as a service or an application? : Sql server database administration

997