プロンプト

Debug a race condition

Diagnoses intermittent concurrency bugs by mapping shared state and the interleavings that break it, adds targeted instrumentation and proposes a fix. Use for bugs seen only under load.

プロンプト全文

English
Help me debug a race condition.
Inputs: code; symptoms; runtime.

1. Map conflicting operation sequences.
2. construct a repeatable race window.
3. compare synchronization, transactions and idempotency with throughput checks.

Deliver: Shared state, Candidate interleavings, Instrumentation, Fix, Verification.
Clarify critical gaps, separate facts from assumptions, and do not invent data, citations or completed actions.

My material: [fill in here]

事前準備

Provide code; symptoms; runtime.

出典とライセンス

Hodios · Debug a race condition

gabrielanhaia

CC0-1.0