Pthread Barriers. Barrier in POSIX threads are very useful i…

Pthread Barriers. Barrier in POSIX threads are very useful in synchronizing phases of operation of an application. A barrier is set using pthread_barrier_init() which specifies a count. Unless and until “count” number of processes come to the barrier point and wait on the barrier by calling pthread_barrier_wait(), the barrier is not overcome. Can we use pthread barriers to implement a quorum consensus (that is to reach or not reach a majority of consensus or agreement in a finite time)? For instance, 3 out of 5 processes could form a quorum if they agree (join) even if the two other processes do not or did not yet agree (did not join as yet). Give a Yes/No answer.