Race conditions are where AI shines if prompted correctly.
Prompt
Act as a concurrency specialist. Given this code: - Identify all shared mutable state - Explain possible execution orders - Point out where timing issues may occur - Propose minimal fixes (not rewrites) Assume multi-core execution under load.
Why it works
AI reasons through execution paths, not syntax.
