c++多线程笔记 1. std::thread t(hello); t.join();//等hello 执行完,也就是会阻塞 t.detach();//把线程放到后台,与当前线程脱离。此时t.joinable() =false