Senior — Principal
Several teams are blocking each other. How to untangle?
sobes.tech AI
Answer from AI
When multiple teams block each other, a deadlock situation occurs. To resolve such a situation, you can:
- Identify the chain of locks: understand which teams and resources are involved, who is waiting for whom.
- Prioritize tasks: determine which team or task is critical and should be executed first.
- Reallocate resources: temporarily change the order of access to resources to break the wait cycle.
- Implement timeouts and rollbacks: if a team waits too long, cancel or restart operations.
- Use an intermediary or arbiter: a centralized controller that manages access to resources.
In practice, this might look like: if team A is waiting for a resource occupied by team B, and team B is waiting for a resource from team A, it is necessary to agree on who will temporarily yield, or reallocate tasks so that one of the teams frees the needed resource.