Application consumes close to 100% of CPU, how to profile and determine the cause
- From: LordHog@xxxxxxxxxxx
- Date: 14 Oct 2005 12:30:19 -0700
Hello,
I recently wrote an application that is used for testing units in a
burn-in chamber. It uses two external library that require the use of
P\Invoke in order to work with them. There is a primary thread and a
secondary polling thread. Every once in a while the process will
consume close to 100% of the CPU, but I am unclear why. I am wondering
how would I go about determine the cause of the problem? What sort of
tools or instrumentation should I use in order to determine what part
of the code is causing the problem. Any help is greatly appreciated.
I know in the hardware world I could implement a watchdog to restart
the sytem, would something like that be useful? I would have to keep
track of the system thus is would run slower and consume more
resources, but I might be able to recover when the process has
problems???
Mark
.
- Prev by Date: Re: C# 2.0 language grammar
- Next by Date: Re: Strong Typed Collections
- Previous by thread: Re: C# 2.0 language grammar
- Next by thread: Re: Application consumes close to 100% of CPU, how to profile and determine the cause
- Index(es):
Loading