天天看點

C++并發程式設計——你好,并發世界

一個簡單的線程程式

#include <iostream>
#include <thread>

using namespace std;

void hello()
{
	std::cout << "Hello Concurrent World\n";
}

int main()
{
	thread t(hello);
	t.join();
}

           
C/C