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.
Debug multithreaded code - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
Debug multithreaded code
- [Instructor] Most computers and devices today are capable of running multiple threads. This is accomplished with multiple processors, multiple core processors, or hyper-threading processes. Because of this, modern programs can allocate work across multiple threads. Programmers love to talk about async code, promises, callbacks, parallel execution, and other jargon-laced words to describe this phenomenon. The basic idea in .NET is that the runtime allocates a single thread to your application when it starts. This thread runs your code. The runtime integrate other threads to handle tasks like garbage collection. For your code, however, unless you opt in, your code runs on one thread. If desired, we can ask for more threads and assign work to these additional threads. These new threads are scheduled to run, and now your code is proceeding on diverging, or parallel code path. Microsoft has built a nice set of tools to…
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)
-
-
-