# Race Condition

A bug where a result depends on unpredictable timing between threads.

## What is **Race Condition** in C#?

**Race Condition** — A bug where a result depends on unpredictable timing between threads.

```csharp
class Counter
{
    int value;

    void Increment()
    {
        value++;
    }
}
```

Level: Master · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/master)

Updated: September 27, 2026

## In other subjects

- [Race Condition in Java](https://www.ask-codey.com/glossary/race-condition-java)

Source: https://www.ask-codey.com/glossary/race-condition-c-sharp
