Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 May : Monitoring a program's CPU usage
| Subject: | Monitoring a program's CPU usage |
| Posted by: | "Anatoly" (anatoly..@gmail.com) |
| Date: | Thu, 10 May 2007 10:49:03 |
Hello everybody!
A client has asked if I could make sure that a certain program that I am
mainaining does not use more that 80% CPU.
The program copies tables from an Interbase database to an MS Access
database. When it is run it takes 99% CPU.
My first spontaneous idea was the let the program sleep for some seconds
if more than a certain amount of records are about to be copied (I can
do this check for each table I copy).
Still, it is not exactly what the client asks for.
Does anybody have any idea how the demand could be satisfied?
Best regards,
Anatoly