Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

create n threads cpp

std::thread* myThread = new std::thread[n];
for (int i = 0; i < n; i++)
{
	myThreads[i] = std::thread(exec, i);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #threads #cpp
ADD COMMENT
Topic
Name
5+3 =