strange behavior of pthread_cond_wait

Hi everyone!
This is my first post here so I hope I am at the good place...

For my internship I have to develop an application to analyse experimental data.

So I created a genetic algorithm using pthreads with 8 threads.

The main program initializes itself, then launches the 8 threads who send a signal to the main program when they are ready. The main program prepare the first loop of the algorithm and then send a launch broadcast on all threads.

The problem is that threads pass through the pthread_cond_wait(&launch, &mtx) (each thread has is own mtx) even when the main program hasen't broadcasted the launch condition...

Could someone help me???
Could you please post some code illustrating your problem?
hi Zaita

I recoded everything and it works now...

thank you :)
Topic archived. No new replies allowed.