| Author |
Message |
jefflundstrom
Joined: 22 Apr 2009 Posts: 2
|
Posted: Wed Apr 22, 2009 6:38 pm Post subject: Thread Blocked .Net Desktop application |
|
|
Hello,
I bought ants to help improve the performance of our .Net Desktop Application and am getting a high Thread Blocked % with no description of where it is happening. In frusteration, I created a basic .Net C# app with no controls at all and when I run the profiler it tells me 50% of the time this app too is thread blocked, what the heck? What is this telling me, should I ignore this value or what?
Thanks,
Jeff
 |
|
| Back to top |
|
 |
AndrewH
Joined: 17 Aug 2006 Posts: 137
|
Posted: Thu Apr 23, 2009 10:59 am Post subject: |
|
|
'Thread blocked' is the time a thread spends inactive, waiting to be woken up (eg, because it is waiting for IO to complete, some user interaction or for a lock to be acquired). It's not time spent running on the CPU and is often not very interesting in terms of performance, so you can select 'CPU time' to eliminate this time from the results. You can also use the thread drop down to focus on individual threads.
In this case, I think you're seeing one of the garbage collection threads waiting to be activated. A top-level 'thread blocked' like this indicates a sleeping .NET thread that isn't running any .NET code at all. _________________ Andrew Hunter
Software Developer
Red Gate Software Ltd. |
|
| Back to top |
|
 |
jefflundstrom
Joined: 22 Apr 2009 Posts: 2
|
Posted: Thu Apr 23, 2009 12:56 pm Post subject: Re: |
|
|
Thanks Andrew, that is what I figured, just wanted to make sure I was not setting up the profiler wrong or something.
Thanks again for getting back to me so quick!
Jeff |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group