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 simulate deadlock in PostgreSQL?

I am new for PostgreSQL. I want to simulate deadlock for this schedule: How to simulate deadlock in PostgreSQL? Is …

postgresql concurrency deadlock database-deadlocks
Deadlock involving foreign key constraint

I would like to understand better a mechanism of locking in postgres. Let's say that tree can have apples (via …

postgresql deadlock database-deadlocks
Zero SQL deadlock by design - any coding patterns?

I am encountering very infrequent yet annoying SQL deadlocks on a .NET 2.0 webapp running on top of MS SQL Server 2005. …

sql sql-server design-patterns deadlock
The futex facility returned an unexpected error code and Aborted

I am trying to solve the Philosophers Dining Problem using semaphores. The philosopher first picks up the left fork and …

c multithreading deadlock semaphore binary-semaphore
MySQL deadlock caused by concurrent INSERT and SELECT

MySQL version: 5.6 Storage engine: InnoDB The deadlock occurred when two tasks tried to select and then insert the same table. …

mysql deadlock
Avoiding PostgreSQL deadlocks when performing bulk update and delete operations

We have a single table which does not have references to any other tables. ┬────────────┬─────────────┬───────────────┬───────────────╮ │id_A(bigint)│id_B(bigint) │…

database postgresql concurrency deadlock database-deadlocks
Why deadlock occurs?

I use a small transaction which consists of two simple queries: select and update: SELECT * FROM XYZ WHERE ABC = DEF …

sql sql-server-2008 transactions deadlock isolation-level