see #2: revision of parallelism and concurrency

This commit is contained in:
Changkun Ou
2019-07-16 14:38:40 +02:00
parent 864ef221e6
commit 5aff35b0f7
11 changed files with 359 additions and 202 deletions

View File

@@ -0,0 +1,19 @@
//
// 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;
}