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.

Is it possible for a thread to Deadlock itself?

Is it technically possible for a thread in Java to deadlock itself? I was asked this at an interview a …

java multithreading deadlock rmi
How to handle MySQL deadlock situations on an application level?

When a deadlock situation occurs in MySQL/InnoDB, it returns this familiar error: 'Deadlock found when trying to get lock; …

php mysql database innodb deadlock
Why doesn't Lock'ing on same object cause a deadlock?

Possible Duplicate: Re-entrant locks in C# If I write some code like this: class Program { static void Main(string[] args) { …

c# .net locking deadlock
How to safely mix sync and async code?

I have this library which is purely sync. It exposes sync methods and I have clients using it. I changed …

c# .net asynchronous async-await deadlock
How to explain the "deadlock" better?

I am struggling to explain "deadlock" in threads in easy words, so please help. What could be the best example …

multithreading deadlock concurrency concurrent-programming
Problem with SQL transaction isolation level

i have a problem with transaction isolation levels. There are two tables involved, first one is updated frequently with transaction …

sql sql-server deadlock transaction-isolation
Reentrant lock and deadlock with Java

Can someone explain to me how Reentrant lock and deadlock relate to each other with Java code (pseudo) example?

java locking deadlock reentrancy
How do I identify a deadlock in SQL Azure?

I have a Windows Azure role that consists of two instances. Once in a while a transaction will fail with …

sql-server azure deadlock azure-sql-database database-deadlocks
Multiprocessing debug techniques

I'm having trouble debugging a multi-process application (specifically using a process pool in python's multiprocessing module). I have an apparent …

python debugging deadlock multiprocessing
Avoid Deadlock example

I am wondering what are the alternative ways to avoid deadlock in the following example. The following example is a …

java multithreading parallel-processing deadlock