If you lock on a local object, you're not locking at all (every thread gets his own new lock). You would need to provide a sync lock as an instance field of your class to synchronize your worker threads.
My experience is very little regarding threads, and it based on C++.
My concern is that I need the time to be accurate as possible. The problem is that I don't know how to get the actual execution time, I'm afraid that I'll start measure time, and the dispatcher will change the current running thread before the http request was made at all - so the actual time will include the time spent on waiting for other threads.
Saturday, September 09, 2006 7:19 AM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.