Relaxation technique in parallel using POSIX threads, barriers and condition variables.