Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Lazamataz

The Background Worker is the new preferred way from what I was reading. With respect to thread dispatch on individual processor cores, you should be able see processor demand curves in perfmon?

I have a multi-threaded c# application I’ve been hacking on for several months, and several things I have noticed in VS 2010 is that debugging is definitely not linear. In fact, the only way I have been able to effectively debug is with log statements. I had to do use lock on a readonly object to single thread through the logger, but it seems to be effective, more or less. At least I’ve been able to generate the application, thank goodness...


6 posted on 05/21/2012 6:46:42 AM PDT by gcraig (Freedom isn't free)
[ Post Reply | Private Reply | To 3 | View Replies ]


To: gcraig
The Background Worker is the new preferred way from what I was reading. With respect to thread dispatch on individual processor cores, you should be able see processor demand curves in perfmon?

If the drain is large enough, I suppose.

I have a multi-threaded c# application I’ve been hacking on for several months, and several things I have noticed in VS 2010 is that debugging is definitely not linear. In fact, the only way I have been able to effectively debug is with log statements. I had to do use lock on a readonly object to single thread through the logger, but it seems to be effective, more or less. At least I’ve been able to generate the application, thank goodness...

There are a series of pretty good tips on debugging MT apps:

http://msdn.microsoft.com/en-us/library/ms164746.aspx

8 posted on 05/21/2012 6:52:40 AM PDT by Lazamataz (The so-called 'mainstream' media has gone from "biased" straight to "utterly surreal".)
[ Post Reply | Private Reply | To 6 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson