c:c_threads:troubleshooting:program_crashes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
c:c_threads:troubleshooting:program_crashes [2021/06/07 08:37] – created peter | c:c_threads:troubleshooting:program_crashes [2021/06/09 11:10] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== C - C++ Threads - Troubleshooting - Program Crashes ====== | ====== C - C++ Threads - Troubleshooting - Program Crashes ====== | ||
- | Forgetting to join a thread | + | [[C:C++ Threads: |
- | For example, the t1 thread is not joined | + | [[C:C++ Threads: |
- | <code bash> | + | [[C:C++ Threads: |
- | #include < | + | |
- | #include < | + | |
- | using namespace std; | + | |
- | void HelloWorld() | ||
- | { | ||
- | cout << "Hello World" << endl; | ||
- | } | ||
- | int main() | ||
- | { | ||
- | thread t1(HelloWorld); | ||
- | // | ||
- | return 0; | ||
- | } | ||
- | </ |
c/c_threads/troubleshooting/program_crashes.1623055030.txt.gz · Last modified: 2021/06/07 08:37 by peter