Skip to content

kevi0x6e/test-race-condition

Repository files navigation

Test Race Condition

Test project on how to avoid race conditions

Summary

A race condition occurs when two or more threads or processes attempt to modify a variable or resource simultaneously, potentially causing unpredictable behavior in the application. To mitigate this issue, I created this test example to prevent it from happening. Can you find more about this solution at Microsoft article.


Download and install

# Download
$ git clone LINK-GITHUB-PROJECT && cd test-race-condition

# Install libs and dependencies
$ dotnet restore

# Build application
$ dotnet build

How to use

# Start
dotnet run api/api.csproj

Run on: localhost

How to test

To test, you need to make two simultaneous requests in debug


License

This work is licensed under MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages