I have a server with 3 threads and a threadpool for recieved data processing. The only locks (reader and writer) Im using are for client connection lists.
Sometimes the main form freezes for a second and I cannot find the problem. The form doesnt do any hard work, thats for different threads.
I wanted to ask whather there is not any way how to track this “freezing” down? Any help is very appreciated,thanks!
I have a server with 3 threads and a threadpool for recieved data processing.
Share
You could run a profiler on your app to try and help isolate the problem.
I’ve been playing around with EQATEC Profiler, it looks like a really good utility and is completely free. It shows you some really useful stats like the time spent in each method. If you are armed with this information it should go a long way to tracking down your problem.
I haven’t tried it on a multi-threaded app yet, so I’m not sure how it handles different threads. But it’s worth a shot as (like I said) it’s completely free (BSD license) and easy to use.