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.

Working around MySQL error "Deadlock found when trying to get lock; try restarting transaction"

I have a MySQL table with about 5,000,000 rows that are being constantly updated in small ways by parallel Perl processes …

mysql deadlock database-deadlocks
How to implement a lock in JavaScript

How could something equivalent to lock in C# be implemented in JavaScript? So, to explain what I'm thinking a simple …

javascript events locking dom-events deadlock
Thread Dump Analysis Tool / Method

When the Java application is hanging, you don't even know the use case that is leading to this and want …

java debugging deadlock thread-dump
How to troubleshoot ORA-02049 and lock problems in general with Oracle

I am getting ORA-02049 occasionally for some long-running and/or intensive transactions. There is seemingly no pattern to this, but …

sql oracle deadlock ora-02049
Transaction (Process ID) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction

I have a C# application which is inserting data into SQL Server (2008) table using stored procedure. I am using multi-threading …

c# sql-server multithreading deadlock
Tips to prevent deadlocks in java

I am studying java threads and deadlocks, I understand deadlock's examples but I wonder if there are general rules to …

java multithreading deadlock
'await' works, but calling task.Result hangs/deadlocks

I have the following four tests and the last one hangs when I run it. Why does this happen: [Test] …

c# nunit task deadlock async-await
What is the difference between "wait-die" and "wound-wait" deadlock prevention algorithms?

What is the difference between wait-die and wound-wait algorithms? It seems that both of these deadlock prevention techniques are doing …

database deadlock database-deadlocks
Check to see if a pthread mutex is locked or unlocked (After a thread has locked itself)

I need to see if a mutex is locked or unlocked in an if statement so I check it like …

c pthreads deadlock mutex
How to catch SqlException caused by deadlock?

From a .NET 3.5 / C# app, I would like to catch SqlException but only if it is caused by deadlocks on …

.net sql-server-2008 deadlock try-catch sqlexception