Waiting for synchronization / Waiting for user interaction

Code profiling for .NET Developers

Waiting for synchronization / Waiting for user interaction

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


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
Posts: 1
Joined: Wed Jan 09, 2013 6:03 am

Postby Brian Donahue » Wed Jan 09, 2013 10: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: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests