which will cause more cpu utilization (C#) -


I am developing an application (C # 3.5) that executes multiple parallel jobs. When I tried one or two jobs in parallel, CPU usage is less like 2% but when I run 50 jobs in parallel, CPU usage is fine for some 20 minutes (less than 10%).

But it suddenly increased to 99% and the PC was hanging. I am using DB operation and LINQ operation. If you can give some ideas, then I can stop my application in tuning.

And is there any NET tool that recognizes potential CPU usage codes?

I have its weird information to ask just like that which causes more CPU usage.

Editing:

The CPU usage is not increasing for the same purpose. But this happens only with many jobs. I do not know any more help is appreciated which causes more CPU usage.

This type of device is called a profiler.


Comments