🌈 搜索
📅  最后修改于: 2022-03-11 14:44:45.026000             🧑  作者: Mango
std::thread* myThread = new std::thread[n]; for (int i = 0; i < n; i++) { myThreads[i] = std::thread(exec, i); }