fork download
  1. #include <omp.h>
  2. #include <stdio.h>
  3.  
  4. int main() {
  5. #pragma omp parallel
  6. {
  7.  
  8. printf("This code block is executed by all threads.\n");
  9. }
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
This code block is executed by all threads.