AntiPattern
Concurrency Locking Mismatch
concurrency-locking-mismatch
Threaded and async code get serialized by mismatched lock semantics—GIL release timing, DB/driver internal synchronized sections, and per-process locks—so expected parallelism collapses into deadlock or blocking and even lock-avoidance workarounds fail.