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

Debug multithreaded code - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

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