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.

Answers were Sorted based on User's Feedback



What is deadlock and how to avoid the deadlocks...

Answer / moin

A deadlock occurs when there is a cyclic dependency between
two or more threads for some set of resources.

Is This Answer Correct ?    13 Yes 1 No

What is deadlock and how to avoid the deadlocks...

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

What is deadlock and how to avoid the deadlocks...

Answer / raghu

Consider there are transcations going on 1 row, some one is
trying to update a column in that row while others are
trying to retrive data of same row,while update locks the
row for some period of time others cannot select it, hence
deadlock occurs.

To kill the process is solution. In sql server 2005 use sql
profiler to view the process, in that see the column named
transactions if its value is more than 1 right click and
kill the process.

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More SQL Server Interview Questions

What do you mean by table and field in sql?

0 Answers  


Explain active/passive and active/active cluster configurations?

0 Answers  


how do you test proper tcp/ip configuration windows machine? : Sql server database administration

0 Answers  


How can i Relate Tables in SSIS

0 Answers   HCL,


How do you find the number of rows in a table?

7 Answers  


What is a fill factor?

0 Answers  


what is for foreign key ??

4 Answers   CarrizalSoft Technologies, Sabic,


Explain syntax for viewing trigger?

0 Answers  


How many types of Outer Joins?What are they?

1 Answers  


What is INTVAL( )and where we use Plz any body help me

1 Answers  


What are pages and extents? : SQL Server Architecture

0 Answers  


What is the difference between for auto and for nested?

0 Answers  


Categories