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

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 ]


To: Lazamataz

Thank you for the multi-threading debug info... now that i understand how to switch threads in the debugger it helped to identify and protect a couple synchronization fixes. Also it is very interesting how you identify thread demand as drain. Do you derive that from the sink /drain programming concepts in Windows? It caught my eye mostly because we describe cpu demand in increasing, or utilization terms. I was wondering about how drain describes it in decreasing, or approaching idle. Do you work in UNIX java environments or do you specialize in Win/.net?


11 posted on 05/27/2012 10:10:47 AM PDT by gcraig (Freedom isn't free)
[ Post Reply | Private Reply | To 8 | 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