This commit is contained in:
2022-10-04 09:37:25 +02:00
parent a8bb926605
commit aa5f60af47
4 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#include <iostream>
#include <thread>
using namespace std;
void mySimpleTask() {
using namespace std::chrono_literals;
while(true) {
cout << "Hello World" << endl;
this_thread::sleep_for(1000ms);
}
}
int main() {
std::thread thread(mySimpleTask);
thread.join();
}