Pattern

Database Deadlock from Locking

deadlock-lock-contention

Concurrent execution holds overlapping locks on shared resources, so threads end up waiting in cycles (or stall on implicit mutexes), producing deadlocks and cascading lock contention that forces queries to scan more and slow further.