Tags: 10-15, access, causes, common, cpu, microsoft, msdn, product, software, syst, system, telcom, txt, visual, working

What are all the common causes that makes the syst...

On Microsoft » Microsoft Visual C & C++

1,649 words with 3 Comments; publish: Tue, 05 Feb 2008 22:18:00 GMT; (32546.88, « »)

What are all the common causes that makes the system CPU to reach 100%. I am working on a Telcom product using VC++.I am trying to access 10-15 .txt files and from there reading telphone numbers from each file for dialing. It's working fine. This is done inside thread. When all the files are covered ( I mean when all the numbers are dialed) I am deleting the files. After that leaving the system with no files. But the system CPU reaches 100% after sometime, say 30 minutes(not constant). In the mean time I am not processing any thing.

Can any one help? Let me know the possible reasons for CPU 100%.

I must thank in advance.

Regards,

Bulu

All Comments

Leave a comment...

  • 3 Comments
    • The cpu can reach 100% capacity because of several reasons:

      the first thing you might look for is endless loop.

      then try to find the operation inside that loop that causes the cpu to endlessly process data or iven just if the loop continues without processing data it may cause 100% cpu usege.

      if you are working with files .. a 100% cpu can be caused by overflowing behind the file's boundries which mean you are continuing the read from a file after reaching his end.

      #1; Sat, 10 Nov 2007 03:07:00 GMT
    • Does the system (Task Manager if on NT/2K) report that it is your application that is consuming the CPU?

      Perhaps it is just Windows doing something in the background? Or maybe you have a "busy wait" somewhere?

      -n

      #2; Sat, 10 Nov 2007 03:08:00 GMT
    • Well! If you are running it on Win2000 (sp1) and using QOS sockets, there is a bug in Win2k that makes ur app eat 100% cpu time.

      Check out the follwoing link:

      http://support.microsoft.com/support/kb/articles/Q263/2/07.asp

      Thanks

      Puri

      #3; Sat, 10 Nov 2007 03:09:00 GMT