Visual Studio Code – Multiple thread print string only one time
I want to write a simple code that will print "Hello world" 4 times using 4 threads: #include <stdio.h> #include <stdlib.h> #include "omp.h" int main(void) { #pragma omp parallel num_threads(4) { #pragma omp critical { //i temporalily changed it to…