O'Reilly logo

Visual Studio 2012 Cookbook by Richard Banks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visualizing concurrency

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.

Getting ready

Create a new C# console application named Concurrency.

How to do it...

  1. Open the Program.cs file and add the following statements to the using statements at the top of the file:
    How to do it...
  2. In the body of Program.cs

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required