共用方式為


3.1.5 omp_get_num_procs 函式

omp_get_num_procs函式會傳回所提供的程式在呼叫函式的處理器數目。 格式如下:

#include <omp.h>
int omp_get_num_procs(void);