Prompt Debug

Debug a Race Condition

Find and fix timing-dependent bugs.

Insert label Race Condition
Prompt

There’s a race condition in this code — it works sometimes but fails other times. Identify where the timing issue is, explain why it happens, and add proper synchronization to fix it.

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl