Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
num_threads
Collapse the table of content
Expand the table of content

num_threads

Sets the number of threads in a thread team.

num_threads(num)

where,

num

The number of threads

The num_threads clause has the same functionality as the omp_set_num_threads function.

num_threads applies to the following directives:

For more information, see 2.3 parallel Construct.

See parallel for an example of using num_threads clause.

Show:
© 2015 Microsoft