I am trying to rewrite a few C OMP programs in Python for demonstration purposes. However, I cannot translate the loop scheduler one can find in C (example below)
pragma omp parallel for schedule(static)
for(i=0; i<10; i++)
printf("\n Process = %d, i = %d", omp_get_thread_num(),i);
Specifically, I need to demonstrate the differences between a dynamic and a static scheduler.
Is there such a thing as a thread scheduler in Python?