PDA

View Full Version : Multi thread/process C.


zootreeves
March 10th, 2006, 09:57 PM
Can someone give me an example of how i could spawn two threads, execute two different functions in the threads. Wait for them both to finish and then continue with the rest of the program. Or does this have to be done by creating two seperate processes instead?

I couldn't figure out any of the tutorials i read.

pharcyde
March 10th, 2006, 10:22 PM
Did you try using posix threads using pthread.h?