The Concurrency Visualizer is another tool that was added in Visual Studio 2010 to assist with multi-threaded 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.
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.
Create a new C# console application named
Program.csfile and add the following statements to the
usingstatements at the top of the file: