This documentation is archived and is not being maintained.
A.3 Using Parallel Regions
Visual Studio 2005
The parallel directive (Section 2.3 on page 8) can be used in coarse-grain parallel programs. In the following example, each thread in the parallel region decides what part of the global array x to work on, based on the thread number: