The vocabulary of the job, one term at a time — what it means, and when you would say it.
Concurrency · intermediate
Two or more tasks each waiting for a resource the other holds, forever.
Meaning
Two or more tasks each waiting for a resource the other holds, forever.
The classic shape is lock A then B in one thread, lock B then A in another: each acquires its first lock, then blocks on the other's. The standard prevention is a global lock ordering — every thread acquires locks in the same sequence — because a cycle of waiting cannot form without an ordering violation. Databases detect the cycle instead and kill one transaction as the victim.
A transfer locks account X then Y while the reverse transfer locks Y then X; both sit waiting until the database aborts one with a deadlock error.
No published skills are linked yet.
Work through the glossary one card at a time, in a different order every run.
Open the discover feed