1.
#include<errno.h>
#include<string.h>才能使使用strerror(int)不报未声明的错误
2.join()函数的用法
thread t1([](){
this_thread::sleep_for(chrono::milliseconds(500));
cout<<"t1"<<endl;
});
thread t2([](){
cout<<"t2"<<endl;
});
t1.join();
cout<<"main"<<endl;
t2.join();
输出可能是:t2 t1 main