Answers for "multiple threads cpp"

C++
0

multiple threads cpp

#include <iostream>
#include <threads>
#include <vecotr>

std::vector<std::thread*> threads;

for(int i = 0; i < x; i++)
{
  threads.push_back(new std::thread(func));
}
Posted by: Guest on January-17-2021

Browse Popular Code Answers by Language