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 are different backups available in sql server?

995


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

904


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

997


What is a result set object returned by odbc_exec()?

951


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

887


what is normalization? : Sql server database administration

1020


Explain the truncate command? : SQL Server Architecture

1092


What are the difference between primary keys and foreign keys?

914


What sql server means?

909


How to create nested stored procedure?

949


Differentiate between SQL and ORACLE joins and write their syntax.

976


What is Command line parameters in PLSQL.?

1058


in the physical file layout, where should the transaction log be stored in relation to the data file?

940


What is sql collation?

1137


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

968