123456789101112131415
#include <stdio.h> #include <omp.h> /* gcc -fopenmp prg1.c */ void main(){ //Write a multithreaded program that prints "hello World" #pragma omp parallel { int ID = 0; printf("hello(%d) ", ID); printf("World(%d)\n",ID); } }