Home Forums C Programming Parallel Processing in win32 Reply To: Parallel Processing in win32

#3239
shalizy
Participant

You can do but code should be parallel. Here function is same,That’s fine. But No variables b/w  those call should not be shared.

Example: Parallel programming using By OpenMP API

#pragma omp sections num_threads(3)
{
  #pragma omp section
   { 
        Fun1();
   }
     #pragma omp section
   { 
        Fun2();
   }
    #pragma omp section
   { 
        Fun3();
   }
}

Then Here three threads execute parallelly.