multiple threads cpp

Solutions on MaxInterview for multiple threads cpp by the best coders in the world

showing results for - "multiple threads cpp"
Greta
11 Apr 2019
1#include <iostream>
2#include <threads>
3#include <vecotr>
4
5std::vector<std::thread*> threads;
6
7for(int i = 0; i < x; i++)
8{
9  threads.push_back(new std::thread(func));
10}