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.

An async/await example that causes a deadlock

I came across some best practices for asynchronous programming using c#'s async/await keywords (I'm new to c# 5.0). One …

c# task-parallel-library deadlock async-await c#-5.0
How to simulate DEADLOCK on SQL Server?

I am trying to simulate a deadlock on SQL Server. _|worker_id|salary| 1|1 |100 | 2|2 |300 | Transaction 1 completed in 5 seconds. /* TRANSACTION 1*/ Use dbmcw; …

sql sql-server concurrency deadlock
How can I clear a transaction deadlock?

Using 'show engine innodb status' I see that wordpress has two deadlocks. I'd like to clear these up but I …

mysql deadlock
SQL Server deadlocks between select/update or multiple selects

All of the documentation on SQL Server deadlocks talks about the scenario in which operation 1 locks resource A then attempts …

sql-server sql-server-2005 deadlock
Visual Studio hangs constantly during build

Probably between 25 and 50% of the times I build my solution, I see this: "The operation you requested is taking longer …

visual-studio visual-studio-2012 build msbuild deadlock
Transaction deadlock for select query

Occasionally, I have the following error for a stored procedure which is only a Select query: Transaction (Process ID 91) was …

sql tsql concurrency deadlock
What is a deadlock in a database?

What is a deadlock in SQL Server and when it arises? What are the issues with deadlock and how to …

database sql-server-2005 deadlock database-deadlocks
TransactionScope Prematurely Completed

I have a block of code that runs within a TransactionScope and within this block of code I make several …

c# sql-server ado.net deadlock transactionscope
Deadlock detected in PL/pgSQL function

I am facing a deadlock problem from a PL/pgSQL function in my PostgreSQL database. Please find the SQL statement …

postgresql concurrency deadlock plpgsql
Java synchronized method

Consider this code: public synchronized void onSignalsTimeout(List<SignalSpec> specs) { if (specs != null && specs.size() > 0) { …

java android multithreading thread-safety deadlock