Skip to content

Latest commit

 

History

History
69 lines (57 loc) · 1.5 KB

File metadata and controls

69 lines (57 loc) · 1.5 KB
title num_threads | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
num_threads
dev_langs
C++
helpviewer_keywords
num_threads OpenMP clause
ms.assetid 09a56fc8-25c7-43e4-bbb5-71cb955d0b93
caps.latest.revision 7
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

num_threads

Sets the number of threads in a thread team.

Syntax

num_threads(num)  

Remarks

where,

num
The number of threads

Remarks

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.

Example

See parallel for an example of using num_threads clause.

See Also

Clauses