Quick Contact

✉
fahimkhan20148@gmail.com
📱
+971 507 286 133
Back to Notes
August 18, 2026
concurrencyrace-condition

Race Conditions

A race condition occurs when multiple threads access and attempt to modify shared state concurrently, and the final outcome depends on the timing or interleaving of execution.

If two threads check a condition and both see an uninitialized state, both may restart the computation, whichever finishes first.