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 system stored procedures?

1024


How to download and install microsoft sql server management studio express?

1016


What are alternate keys?

967


What is a mixed extent?

995


how many triggers you can have on a table? : Sql server database administration

956


What is subquery in sql?

1036


What does truncate do?

922


What are built in functions?

979


explain declarative management framework (dmf) in sql server 2008?

972


How to create a view on an existing table in ms sql server?

1105


How to use linked server?

1162


what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration

1110


What do you understand by coalesce in sql server?

1042


What are scheduled tasks in sql server?

1057


What is the difference between resultset and resultsetmetadata?

936