multithreading - Simple example of threading in C++ - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
multithreading - Simple example of threading in C++ - Stack Overflow
Result The entire code is this: #include #include #include using namespace std; //The function we want to make the thread run. void task1(string msg) { cout