mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
20 lines
351 B
C++
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;
|
|
}
|