Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Running F95 app at lower priority

kdkeefer
Beginner
858 Views
I run a Monte Carlo program on my home computer that can run for days. How can I lower its excution priority so other applications (like Word) don't have annoying pauses, but the program will execute when no one is using the computer?
Keith
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
858 Views
This piece of code put somewhere at startup should solve it:

USE DFWIN

i = SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS)

Jugoslav
0 Kudos
Reply