From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Freeze and thaw threads

Freeze and thaw threads - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Freeze and thaw threads

- [Instructor] When programmers learn about threading there's a lot of concepts to understand. And one of those concepts is the idea of thread suspension. Your application is running on a computer and at some part of the application's lifetime you have multiple threads running and you want to suspend one for a while and not process any code and then you can resume the thread later. In Visual Studio, when you're debugging your application and you hit a break point, all your threads are suspended in Visual Studio, and this makes sense. You don't want your variables changing. You don't want your call stack being rearranged until you give permission to Visual Studio by running the application or continuing or stepping through your code. Any time you step you want to process the next thread that's ready to run. And then you want to stop and examine what's happening in your code. Well, here's another concept it's called…

Contents