26 July, 2017
Testing multithreaded scenarios in .NET
Multithreading is a difficult topic. Writing code that works in a multithreaded environment is really hard.
And how can we test such code? There is close to no useful guidelines online regarding this matter. We are forced to gain relevant experience ourselves, by trying and making mistakes.
I've dealt with this issue more than once. After many days of trying, I managed to gather a handful of useful practices that can be applied to numerous similar projects. I will share my recipes, demonstrating them on a specific piece of code.