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

int main(int argc,char* argv[])
{
	int nthreads, tid;

	omp_set_num_threads(16);
	
	#pragma omp parallel private(tid)
	{
		tid=omp_get_thread_num();
		printf("Hello World from thread = %d\n",tid);
		
		if(tid==0) 
		{
			nthreads=omp_get_num_threads();
			printf("Number of threads = %d\n",nthreads);
		}
	}
}
// Workstations
// ============
// gcc -fopenmp blah.c

// Arcturus
// ========
// cc -O3 -xopenmp blah.c

