#include <stdio.h>
#include <unistd.h>
/* getpid() */
#include <omp.h>
int
main
(){
/* Fork 4 threads */
#pragma omp parallel num_threads(4)
printf
(
"Hello from thread %d in process%d.\n"
,
omp_get_thread_num
(),
getpid
());
}