#include <iostream>
#include <thread>
#include <vector>

void workThreadProcess() {
	std::cout << "Working..."<<std::endl; 
}

int main() {
	const int THREADS=10; 
	//Create a list of threads
	std::vector<std::thread> t;
	for(int i=0; i < THREADS; i ++){
    	std::thread th = std::thread([](){ workThreadProcess(); });
    	t.push_back(std::move(th));
    	std::cout<<"Thread started"<<std::endl;
    	}

	for(auto& th : t){
    	th.join();
	}
}