Displaying 1 result from an estimated 1 matches for "pthread_id2".
Did you mean:
pthread_id
2009 Mar 08
3
Thread creation in Wine
...mysum=0.0;
for(unsigned int j = 0; j< CNT; j++)
for(unsigned int k=0; k < CNT; k++)
for(unsigned int i=0; i<CNT; i++)
mysum += i;
std::cout << "mysum: " << mysum << std::endl;
return 0;
}
int main(int argc, char *argv[]) {
pthread_t pthread_id, pthread_id2;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS);
std::cout << "first thread: " << pthread_create(&pthread_id, &attr, my_th, 0) << std::endl;
std::cout << "second thread: " <<...