Difference between revisions of "GPU621/Group 2"

From CDOT Wiki
Jump to: navigation, search
m
Line 3: Line 3:
 
# [mailto:dseifert-booth@myseneca.ca?subject=GPU621 Darius Seifert Booth]
 
# [mailto:dseifert-booth@myseneca.ca?subject=GPU621 Darius Seifert Booth]
 
# [mailto:rchung29@myseneca.ca?subject=GPU621 Rudy Chung]
 
# [mailto:rchung29@myseneca.ca?subject=GPU621 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. multithreaded 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 =
 
= OpenMP Debugging in Visual Studio =
placeholder text
+
== Threads Window ==
 
+
=== Switching Threads ===
 +
=== Flagging Threads ===
  
 +
== Walkthrough ==
  
== Sources ==
+
= Sources =
placeholder text
+
https://learn.microsoft.com/en-ca/previous-versions/visualstudio/visual-studio-2015/debugger/debug-multithreaded-applications-in-visual-studio?view=vs-2015

Revision as of 17:23, 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. multithreaded 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