Quote:
Originally Posted by
zing_foru
Hi all,
Can I create multiple threads using single thread_id
pthread_create does not
take a thread ID, it
overwrites the value of thread_id. That's why it's a pointer, you're telling it what memory to overwrite.
So you could create lots with the same variable, but you'd just be overwriting the same value every time and losing track of everything but the last created thread, not creating threads with the same ID.