• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Windows NT CPU Priority

stevty2889

Diamond Member
I'm trying to see if there is a way to have a service automaticly start with low CPU priority. We are running a remote desktop service in Windows NT 4.0, on a piece of equpiment in a manufacturing environment. Unfortunaly, if the CPU priority is set to normal, and some one uses the remote desktop for too long, it will cause the machines software to lock up. Setting the CPU priority to low, prevents this from happening. The remote desktop server is set to run as a service, so it will automaticaly start up with windows. Due to the number of machines, and frequency of reboots, it isn't feasable to have some one manually change the CPU priority every time. Does anyone know of a way to have the service automaticaly start with low cpu priority?
 
There is not a built in way, but it would be fairly trivial to have some write another service which would monitor this one and change its priority (say poll once a minute and adjust the priority if it was wrong)

 
Thanks, I may have found a way to do it without using another service. Instead of having the service start with windows, I can put a batch file in the startup folder, with the command start /low xxxx.exe. It works in XP, not sure if it will work in NT or not.
 
Originally posted by: stevty2889
Thanks, I may have found a way to do it without using another service. Instead of having the service start with windows, I can put a batch file in the startup folder, with the command start /low xxxx.exe. It works in XP, not sure if it will work in NT or not.

In this case your running the app not starting a service. The app will stop when the user logs off. If thats ok, this will work, but when you mentioned a service I thought you actually meant a windows service.


 
Won't be a problem, there won't be anyone logging on or off, and if they have to reboot, it will still start back up. Right now it's set up to start up as a service, but using the startup folder works just as well.
 
Originally posted by: stevty2889
Won't be a problem, there won't be anyone logging on or off, and if they have to reboot, it will still start back up. Right now it's set up to start up as a service, but using the startup folder works just as well.

In that case, what you suggested should work just fine...

 
Originally posted by: stevty2889
Thanks, I may have found a way to do it without using another service. Instead of having the service start with windows, I can put a batch file in the startup folder, with the command start /low xxxx.exe. It works in XP, not sure if it will work in NT or not.

I did the same thing with the sidebar to set it to low priority. Works great.
 
Back
Top