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...