The Concurrency Visualizer is another tool that was added in Visual Studio 2010 to assist with multithreaded code and, just like the other features of Visual Studio related to threading in Visual Studio 2012, it too has been the subject of a number of improvements. Starting with VS2013, it has been pulled out of the default installation, but is available on the Visual Studio Gallery.
In this recipe, we'll take a look at these improvements, and see how you can better understand what is happening inside your application when it runs.
You will need to use VS2015 or one of the premium editions for this recipe. Download and install the Concurrency Visualizer from the Visual Studio Gallery available at https://visualstudiogallery.msdn.microsoft.com/a6c24ce9-beec-4545-9261-293061436ee9. Once installed, reopen Visual Studio, and create a new C# console application named Concurrency
.