[Solved] Is there a way to run in parallel completeley unrelated tasks in C/C++
You can try with OpenMP tasks. Open a parallel block and create two task blocks in it. Something like this: #pragma omp parallel { #pragma omp task { // hello world code } #pragma omp task { // connect mysql } } Add the -fopenmp option to your compilation line. There might be better approaches … Read more