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 - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
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
-
-
-
-
-
-
(Locked)
Debug multithreaded code2m 47s
-
(Locked)
Run the sample application3m 51s
-
(Locked)
Examine the sample application code8m 22s
-
(Locked)
Overview of the thread debug windows1m 54s
-
(Locked)
Debug with the Threads window3m 21s
-
(Locked)
See worker threads in the Threads window3m 3s
-
(Locked)
Show threads icons in the source editor1m 13s
-
(Locked)
Debug with the parallel watch2m 12s
-
(Locked)
Identify threads with custom names and Flags3m 3s
-
(Locked)
View the Thread call stack1m 37s
-
(Locked)
Examine the modified code for Parallel Stack1m 50s
-
(Locked)
Use the Parallel Stack window4m 6s
-
(Locked)
Conditional breakpoints from Thread ID2m 53s
-
(Locked)
Freeze and thaw threads2m 22s
-
(Locked)
-
-
-