// gcc -std=c99 -fopenmp hello_omp.c -o hello_omp #include // New header! #include int main(){ int threads = 100; int id = 100; #pragma omp parallel { threads = omp_get_num_threads(); id = omp_get_thread_num(); printf("Hello from thread %d of %d\n",id,threads); } return 0; }