Part of an article series on Multithreading in .NET
📝 Read Part 1 on Medium | 📝 Read Part 2 on Medium | 📝 Read Part 3 on Medium
This repository contains all the code examples from the articles of the Multithreading in .NET series. Each project is a self contained console application that demonstrates a specific advanced synchronization primitive in .NET.
The examples are designed to be:
- Runnable out of the box — clone, open, and hit F5
- Practical — every example is based on a real world scenario
- Progressive — each topic builds on the previous one
Before running any of the projects make sure you have the following installed:
| Requirement | Version | Download |
|---|---|---|
| .NET SDK | 6.0 or above | dotnet.microsoft.com |
| Visual Studio | 2022 recommended | visualstudio.microsoft.com |
| OS | Windows, macOS, Linux | — |
To verify your .NET version open a terminal and run:
dotnet --versiongit clone https://github.com//beastkp/Multithreading_Dotnet.git- Open Visual Studio
- Click File → Open → Project/Solution
- Navigate to the project folder you want to run (e.g.
Locks) - For Mutex configure the Startup as both Mutex1 and Mutex2 (better understanding)
- Hit F5 to run
Found a bug or want to suggest an improvement? Feel free to open an issue or submit a pull request. All contributions are welcome.
💡 If you found this helpful, consider giving the repository a ⭐ and follow me on medium for more interesting materials