# Race Condition

say it: **“RAYS kun-DISH-un”** **/ˈreɪs kənˈdɪʃən/**

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?category=c-sharp&level=5)

Updated: November 17, 2026

## In other subjects

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

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