Here's a classic example of a race condition in C using threads:

```c
#include <stdio.h>
#include <