#include < stdio.h> #include < omp.h> // Include OpenMP int main(int argc, char **argv) { #pragma omp parallel num_threads(10) { int threadNum; threadNum = omp_get_thread_num(); printf("This is thread %d\n", threadNum); } return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)