#include<iostream> #include<thread> void print(){ std::cout << "hello world" << std::endl; } int main(){ std::thread t(print); t.join(); return 0; }
第1章 你好,C++并发世界
原文:https://www.cnblogs.com/hebust-fengyu/p/12074972.html