Changes

Jump to: navigation, search

GPU621/Pragmatic

11 bytes added, 10:36, 7 November 2016
Notes
While parallel processing of multiple threads increases program performance, it makes debugging task harder, since we need to track multiple threads instead of just one (Master thread). Also some potential bugs are introduced with parallel processing, for example, when race condition (When multiple processes or threads try to access same resource at the same time, for more information visit [https://en.wikipedia.org/wiki/Race_condition Race Condition Wiki]) occurs and mutual exclusion is performed incorrectly, it may create a deadlock condition (When all threads wait for the resource and none can execute, for more info visit [https://en.wikipedia.org/wiki/Deadlock Deadlock Wiki]), which can be very difficult to debug.
Visual Studio provides many useful tools that make multithreaded debugging task of the multi-threaded tasks easier.
'''Debug Threads and Processes'''
A process is a task or a program that is executed by operating system, while a thread is a set of instructions to be executed within a process. A process may consist of one or more threads.
Following are the tools for debugging Threads and Processes in Visual Studio:

Navigation menu