[DUG] CPU memory usage

Phil Scadden p.scadden at gns.cri.nz
Tue Aug 19 09:13:29 NZST 2008


> I am creating a window service using delphi 5. I need some help is getting the CPU memory usage of the machine so that my service runs when CPU usage is low. Is there any way to find out the CPU usage. Is there soem registry key or soemthing. I am not sure actually.
>
>   
Strikes me that the best way to do this is to reduce the priority of 
service process instead. A process with appropriate privilege can get 
the id of process and then reduce the priority. I dont know if a process 
can do this to itself (I have my doubts) but perhaps your service runs 
within a context where another process can do this? As far as I know you 
cannot change priority through the SCM functions.
-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Delphi mailing list