C++并发编程--第二章--线程管理
1. threadC++11中,支持多线程编程的标准卡#include<thread>#include <iostream>#include <thread>void hello(){ std::cout<<"Hello World\n";}int main() { std::thread t(hello); t.join();}std::thread 定义一个线程对象,线程对象t 拥有一个可执行线程的所有权,其初.
复制链接