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.

How to avoid mysql 'Deadlock found when trying to get lock; try restarting transaction'

I have a innoDB table which records online users. It gets updated on every page refresh by a user to …

mysql deadlock
How to solve SQL Server Error 1222 i.e Unlock a SQL Server table

I am working in a database where I load data in a raw table by a data loader. But today …

sql-server database sql-server-2008-r2 locking deadlock
SQL query to get the deadlocks in SQL SERVER 2008

Possible Duplicate: Help with deadlock in Sql Server 2008 SQLServer automatically logs all deadlocks. Can anyone help me to get sql …

sql sql-server database tsql deadlock
Cause of a process being a deadlock victim

I have a process with a Select which takes a long time to finish, on the order of 5 to 10 minutes. …

sql-server deadlock
What's the difference between deadlock and livelock?

Can somebody please explain with examples (of code) what is the difference between deadlock and livelock?

multithreading pthreads deadlock livelock
await vs Task.Wait - Deadlock?

I don't quite understand the difference between Task.Wait and await. I have something similar to the following functions in …

c# task-parallel-library deadlock async-await
Simple Deadlock Examples

I would like to explain threading deadlocks to newbies. I have seen many examples for deadlocks in the past, some …

multithreading language-agnostic deadlock
What is a deadlock?

When writing multi-threaded applications, one of the most common problems experienced are deadlocks. My questions to the community are: What …

multithreading concurrency locking deadlock
Recursive Lock (Mutex) vs Non-Recursive Lock (Mutex)

POSIX allows mutexes to be recursive. That means the same thread can lock the same mutex twice and won't deadlock. …

multithreading locking mutex deadlock recursive-mutex
C++ terminate called without an active exception

I am getting a C++ error with threading: terminate called without an active exception Aborted Here is the code: #include &…

c++ multithreading deadlock c++11