Link to home
Start Free TrialLog in
Avatar of 8831
8831

asked on

How to hold my VB NT service until the CPU usage stop hitting 100%

I have a NT service created with VB (using NTSRV.OCX) which do a TIFF to PNG conversion on a given directory.

There are several other services installed on the same Win2k server which also do some disk write operations and they will take up 100% CPU usage for about 10 seconds once every 5 minutes.

Now, is there a way to hold my NT service from running if the CPU usage hits 100%? Maybe I can use a loop to scan the CPU usage before I do my image conversion? Or maybe a If Then statement or While loop...
ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial