#include <iostream>
#include <stdio.h>
#include <thread>
using namespace std;
void thread_task()
{
cout<<" hello thread" <<endl;
}
int main()
{
thread T(thread_task);
T.join();
return 0;
}
#make file
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -Wall -std=c++11 -ggdb -std=c++11")