Some users will want their web server to run as fast as possible Realtime, as fast as is reasonable High, or have it use as little resources as possible Low. Since this application is multi-platform someone will need to figure out how many priority levels exist for Linux and slightly customize the parameter description for the Linux platform (ie. there might not be 6 different execution priorities in Linux)
In Windows there are priority levels 6:
0 = Idle (default)
1 = Below Normal
2 = Normal
3 = Above Normal
4 = High
5 = Realtime
I suggest having the parameter work like this:
miniwebsvr -priority 0
The reason I'm suggesting 0 by default is that most people aren't hosting industrial websites using this program. Instead they're probably hosting a website on a machine that performs many other tasks that might be of greater or equal priority.
I'm including a 7-zip archive of the AutoITX.dll (open source). There's a command in the source code called "AU3_ProcessSetPriority" that can be reverse engineered to use natively in your program. Alternatively, you can just bundle and therefore call the DLL when you need it.
Thanks,
Christian Blackburn
Logged In: YES
user_id=561770
Originator: YES
It wouldn't allow me to upload a file that large so just install this, go to C:\Program Files\AutoIt3\AutoITX and you'll find the source code & binary I've described.
http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe
-Christian