Hi Sorry for sending a big dump of code, but I'm very new to C code, basically I am doing college assignment and I need to implement "pthread_barrier", now I understand the concept of a barrier (or at least I think I know ) But I donβt know exactly where. Appointment:
"Use pthread_barrier_init and pthread_barrier_wait to ensure that all producer / consumer flows begin to produce / consume at the same time."
This is an additional credit part of the assignment by
#include <pthread.h>
source share