omp_set_num_threads(int n);
set the number of threads
int omp_get_thread_num()
return the number of this thread
#pragma omp parallel { code to run on each thread }
#pragma omp master
runs on one thread only
#pragma omp for reduction (+:sum)