Win2000/XP Job Kernel object
-
There's an extenssion to win32API that comes with Win2000/XP that allows to impose some restrictions on single process or process group. The flags that are used to define constraints allow to achiewe a lot , but I couldnt find how to force process /group of processes to use not more than some amount of procesor computing power, measured in % (percentage). For example: I want a media player which decodes some video file (ie divx format) to use not more than 50% of computing power of my CPU. If the program wants to consume more CPU procesing power (than the specyfied amount)it would simply not receive it. When viewing the performance tab of task manager , the upper graf (of the cpu) shouldn't exceed 50% (provided that no other applications use processor). I know that it is possible , since the IIS (that comes with Win2000) allows to specify whether or not to use 'process throttling' , and to specify how many CPU computing power a web application (running some executable code / scripts) within the server may consume Thanx in advance :| Michal Januszczyk