Concurrency Visualizer is a very handy addition to the Visual Studio tools collection. It doesn't get shipped by default in Visual Studio, but can be downloaded from the Visual Studio Marketplace here: https://marketplace.visualstudio.com.
This is a very advanced tool that can be used to troubleshoot complex threading issues such as performance bottlenecks, thread contention issues, checking CPU utilization, cross-core thread migrations, and areas of overlapped I/O.
Concurrency Visualizer only supports Windows/console projects and is not available for web projects. Let's consider the following code in a console application:
Action computeAction = () =>
{
int i = 0;
while (true)
{
i = 1 * 1;
}
};
Task.Run(() => computeAction());
Task.Run(() => computeAction());
Task.Run(() => computeAction());
Task.Run(() => computeAction...