Reputation: 4587
I am developing a application (C# 3.5) which executes multiple parallel jobs. When I tried one or 2 jobs in parallel the CPU utilization is less like 2%. But when I run 50 jobs in parallel the CPU utilization is fine for some 20 minutes (less than 10%).
But it suddenly increased to 99% and PC hangs. I am using DB operation and LINQ operations. If you can give some idea, that can light me up in tuning my application.
And also is there any .NET tools which identifies potential CPU utilization code?
I know its weird to ask just like that which will cause more CPU utilization.
Edit:
For a single job the CPU utilization is not increasing. But it happens with multiple jobs only. I donno which causes more CPU utilization. Any help is appreciated.
Upvotes: 0
Views: 272
Reputation: 17810
Such a tool is called a profiler. You can see soem profiler recommendations at What Are Some Good .NET Profilers?
Upvotes: 2