#include #include using namespace std; void hello() { /* get thread id */ int id = omp_get_thread_num(); cout << "Hello from thread " << id << "\n"; } int main() { #pragma omp parallel num_threads(4) hello(); return 0; }