in reply to Set thread quantum for process under Windows
Type start /? on your command line for how to start a command with a low or background priory.
Hit ctrl-alt-del to bring up the task manager, right-clock the name on the processes tab and use "set Priority" ona running process.
See Win32::Process and use the appropriate constant from:
HIGH_PRIORITY_CLASS IDLE_PRIORITY_CLASS NORMAL_PRIORITY_CLASS REALTIME_PRIORITY_CLASS THREAD_PRIORITY_ABOVE_NORMAL THREAD_PRIORITY_BELOW_NORMAL THREAD_PRIORITY_ERROR_RETURN THREAD_PRIORITY_HIGHEST THREAD_PRIORITY_IDLE THREAD_PRIORITY_LOWEST THREAD_PRIORITY_NORMAL THREAD_PRIORITY_TIME_CRITICAL ABOVE_NORMAL_PRIORITY_CLASS BELOW_NORMAL_PRIORITY_CLASS
if you are starting the process from within perl.
Personally, I find the first option the simplest even when starting a process from with a perl script:
system q[start /low notepad.exe];;
as it also allows me to set the affinity mask.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Set thread quantum for process under Windows
by chessgui (Scribe) on Jan 05, 2012 at 10:19 UTC | |
by BrowserUk (Patriarch) on Jan 05, 2012 at 10:35 UTC | |
by chessgui (Scribe) on Jan 05, 2012 at 10:48 UTC |