Monday, June 3, 2013

multithreading example using openmp


#include<stdio.h>
#include<omp.h>

int main()
{
int i=0;
omp_set_num_threads(16);
#pragma omp parallel
{
for (i=0;i<9999999999;i++);
printf("%d",i);
}
return 0;
}

No comments:

Post a Comment