G
Guest
I have a Windows service that's built with .NET. The process is meant to run
in the background and not suck up too much CPU time. I set the thread
priority for the various threads in the service to Below Normal, but I'm
still getting reports that the service is making a noticable impact on
overall machine performance.
I stuck some Thread.Sleep calls in a various places in the code, but that
doesn't help much, since the service makes single API calls that are fairly
processor intesive (such as computing the checksum on a file) and can't be
broken down any further.
Is there some API (.NET or otherwise) or something that will allow me to to
say "Don't ever use more than 10% of the user's CPU time"?
Thanks
in the background and not suck up too much CPU time. I set the thread
priority for the various threads in the service to Below Normal, but I'm
still getting reports that the service is making a noticable impact on
overall machine performance.
I stuck some Thread.Sleep calls in a various places in the code, but that
doesn't help much, since the service makes single API calls that are fairly
processor intesive (such as computing the checksum on a file) and can't be
broken down any further.
Is there some API (.NET or otherwise) or something that will allow me to to
say "Don't ever use more than 10% of the user's CPU time"?
Thanks