O'Reilly logo

C# Multithreaded and Parallel Programming by Rodney Ringler

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

Using the Parallel Watch window

The Parallel Watch window allows you to display the values of an expression that is held on multiple threads. You can see it running a parallel application and select Parallel Watch by navigating to Window | Debug. As you see in the following screenshot, the Parallel Watch window is empty until you add a watch statement. Each row shows a thread that has a method call that matches the method on the current stack frame.

If you click on the <Add Watch> bar, you can type in an expression to watch. This allows you to see the value of the same expression in multiple threads. You can show up to four Parallel Watch windows just like the regular Watch window if you would like to watch more than one expression. You can also ...

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