How to hold my VB NT service until the CPU usage stop hitting 100%
Posted on 2003-11-27
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...