|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
A.1 Executing a Simple Loop in Parallel
Visual Studio 2005
The following example demonstrates how to parallelize a simple loop using the parallel for directive (Section 2.5.1 on page 16). The loop iteration variable is private by default, so it is not necessary to specify it explicitly in a private clause.