I have a program structured as follows, and this is a massive processor boss. IO is slowing down for the whole system, I can hardly move the mouse pointer ...
... why? I thought THREAD_MODE_BACKGROUND_BEGIN should prevent this?
#pragma omp parallel { SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_BEGIN); #pragma omp for for (...) { doTruckLoadsOfComputation(); if (omp_get_thread_num()==0) doTinyAmountOfIO();
UPDATE:
Adding SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL); fixes the problem with starting the processor, but the question is still, why is not enough one background mode?
source share