Tests the thread barrier class. A barrier is a synchronization primative that stops a process execution until a certain number of threads finish their individual tasks.
Usage:
$ ./barrier_test
Output: the demo program prints to stdout the threads status as the barrier waits.
Example output:
Thread going into barrier
Thread going into barrier
Main process going into barrier
Main process leaving barrier
Thread leaving barrier
Thread leaving barrier