next up previous contents
Next: About this document ... Up: Examples Previous: Parallel version 3 :   Contents

Timing the Barrier Calls

The purpose of this example is to appreciate the overhead involved in using parallel computing primitives. A barrier call serves to act as a point where each process stops execution until every process reaches that point. Hence it is a mechanism to synchronize the steps of execution. We determine the time it takes for the execution of this call.

File names: barrier.c       /*source code */
            barrier         /* executable */
            barrierop       /* output example file */



Sushil Prasad 2004-09-16