Top "Deadlock" questions

Situation where two (or more) operations need overlapping sets of resources, and neither can complete because they cannot obtain all locks necessary to complete an operation and release their locks.

Deadlock detection in Java

Long time ago, I saved a sentence from a Java reference book: "Java has no mechanism to handle deadlock. it …

java multithreading deadlock
Finding cause of deadlock error from oracle trace file

I have been getting this "ora-00060 deadlock detected while waiting for resource" error often now in my application when multiple …

oracle deadlock trace
Query is locking tables, can't kill that process

I have a query locking tables in MySQL (using InnoDB): UPDATE table SET status = 2 WHERE status = 3 This query caused a …

mysql deadlock database-deadlocks kill-process
Difference between racearound condition and deadlock

What is the difference between a dead lock and a race around condition in programming terms?

multithreading deadlock race-condition
Programmatic deadlock detection in java

How can I programmatically detect that a deadlock has occurred in a Java program?

java multithreading concurrency deadlock
Can an INSERT operation result in a deadlock?

Assuming: I am using REPEATABLE_READ or SERIALIZABLE transaction isolation (locks get retained every time I access a row) We …

sql insert deadlock
How to get efficient Sql Server deadlock handling in C# with ADO?

I have a class 'Database' that works as a wrapper for ADO.net. For instance, when I need to execute …

c# sql-server ado.net .net-2.0 deadlock
Write a program that will surely go into deadlock

I recently got this questions asked in an interview. I answered that deadlock occurs if the interleaving goes wrong, but …

java concurrency deadlock
ReentrantReadWriteLock: what's the difference between ReadLock and WriteLock?

What I know is: ReadLock and WriteLock affect each other somehow WriteLock is just like synchronized ReadLock seems cannot work …

java multithreading locking deadlock reentrantreadwritelock
SqlException: Deadlock

I have these two exceptions generated when I try to get data from SQL database in C#: System.Data.SqlClient.…

c# sql deadlock database-deadlocks