Barrier

This lesson discusses the all-important barrier synchronization construct.

We'll cover the following...

Barrier

A barrier is a synchronization construct to wait for a certain number of threads to reach a common synchronization point in code. The involved threads each invoke the barrier object's wait() method and get blocked till all of threads have called wait(). When the last thread invokes wait() all of the waiting ...