Files
modern-cpp-tutorial/code/7/7.1.thread.basic.cpp
2019-07-16 14:38:40 +02:00

20 lines
351 B
C++

//
// 7.1.thread.basic.cpp
// chapter 7 parallelism and concurrency
// modern c++ tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial
//
#include <iostream>
#include <thread>
int main() {
std::thread t([](){
std::cout << "hello world." << std::endl;
});
t.join();
return 0;
}