Waiting for synchronization / Waiting for user interaction

Code profiling for .NET developers.

Moderators: AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

Waiting for synchronization / Waiting for user interaction

Postby rehmanmansoor » Wed Jan 09, 2013 7:18 am

Hi,

Im using ANTS Performance Profiler 7 in out silverlight application and on the from the profile result its showing me Waiting for synchronization or Waiting for user interaction as the method name which cost almost 70% of the processing time .

so can someone guide me why im getting this rather than a method name which is in waiting position or any thing which is meaningful

Thanks is advance
RM
rehmanmansoor
 
Posts: 1
Joined: Wed Jan 09, 2013 7:03 am

Postby Brian Donahue » Wed Jan 09, 2013 11:10 am

Waiting for synchronization is (most of the time) an indication that the thread is held up waiting for another thread to complete. In the current version of ANTS, you can't realistically tie that back to a stack for the worker thread in question - you just have to look at the code leading up to that and see in the code what asynchronous method that spawned.

Sometimes you may see a thread with nothing but "waiting for synchronization" - that usually indicates some thread pool managed by .NET that has spawned a bunch of threads that just sit there, waiting to be assigned some work.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Performance Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests