Download c source code

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

int main(void)
{
	#pragma omp parallel
	{
		#pragma omp critical (print)
		printf("Hello from thread %d of %d\n"
			, omp_get_thread_num()
			, omp_get_num_threads() );
	}
	return 0;
}