Manually use pthreads with pthread_barrier_wait() in openmp_frequency.c; amusingly this seems to be slower than OpenMP by itself.