Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[C/C++] pthread parallel execution

Name: Anonymous 2007-08-17 21:38 ID:4NoCXfyk

Just started learning to use POSIX threads, but I find that every time I create a thread and/or join it, the calling thread halts until the called thread completes its iteration. How do I execute them parallel to one another?

Thanks.

Name: Anonymous 2007-08-17 21:56 ID:kRXGqyPR

>>1
Uh, pthread_join's purpose is to block until the given thread has finished executing. If you have an infinite loop in the thread, it will block indefinantly.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List