Home > Back-end >  Openmp multi-threading efficiency problem
Openmp multi-threading efficiency problem

Time:09-19

We used the openmp, parallel C language program to improve the parallel regional Settings are as follows:

# pragma omp parallel sections num_threads (2)
{
# pragma omp section data {with}
# pragma omp section data {with}
}

Thread no lock inside, why the efficiency is very low, especially when the number of threads increases (CPU is 4 core, hardware no problem).
  • Related