Does setting OMP_NUM_THREADS=1 in the global environment variables (via Control Panel -> Sytem -> Environment variables) affect only programs run from the command prompt or all programs?

1 Answer 1


Let's say it so: the setting of OpenMP variables like OMP_NUM_THREADS affect only programs using OpenMP.

Since the OpenMP doesn't deal with the GUI so the answer is: it affects console only!

  • 1
    I think the intent of @Dunkit is to find out whether the variable affects console (text-based) and Windows subsystem applications using OpenMP in the same way Nov 26, 2014 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.