Difference between revisions of "GPU621/Group 2"

From CDOT Wiki
Jump to: navigation, search
m (Debugging single-threaded V.S. multithreaded programs)
Line 11: Line 11:
 
The existence of multiple threads enables a process to separate work to be performed in parallel.
 
The existence of multiple threads enables a process to separate work to be performed in parallel.
  
== Debugging single-threaded V.S. multithreaded programs ==
+
== Debugging Single-threaded V.S. Multi-threaded Programs ==
 
Debugging usually occurs on a single threaded program by pausing the execution at a specific line of code. While the execution is paused, the values of all the variables can be inspected. This can be helpful to closely view what is occurring between each line of code.  
 
Debugging usually occurs on a single threaded program by pausing the execution at a specific line of code. While the execution is paused, the values of all the variables can be inspected. This can be helpful to closely view what is occurring between each line of code.  
  
Debugging a multithreaded program is different from debugging a single threaded program because each thread has its own sequence of execution, meaning that the point that the execution is paused at can vary for each thread.  
+
Debugging a multithreaded program is different from debugging a single threaded program because each thread has its own sequence of execution, meaning that the point that the execution is paused at can vary for each thread.
  
 
= OpenMP Debugging in Visual Studio =
 
= OpenMP Debugging in Visual Studio =

Revision as of 17:26, 23 February 2023


GPU621/DPS921 | Participants | Groups and Projects | Resources | Glossary

Group Members

  1. Darius Seifert Booth
  2. Rudy Chung

Definitions

Processes

Every process is a separate instance of a particular program that is being run on a computer.

Threads

Threads are sets of instructions that get executed by the processes that contain them. The existence of multiple threads enables a process to separate work to be performed in parallel.

Debugging Single-threaded V.S. Multi-threaded Programs

Debugging usually occurs on a single threaded program by pausing the execution at a specific line of code. While the execution is paused, the values of all the variables can be inspected. This can be helpful to closely view what is occurring between each line of code.

Debugging a multithreaded program is different from debugging a single threaded program because each thread has its own sequence of execution, meaning that the point that the execution is paused at can vary for each thread.

OpenMP Debugging in Visual Studio

Threads Window

Switching Threads

Flagging Threads

Walkthrough

Sources

https://learn.microsoft.com/en-ca/previous-versions/visualstudio/visual-studio-2015/debugger/debug-multithreaded-applications-in-visual-studio?view=vs-2015