Threading Race
One thing that jumped out: you call EndInvoke *before* results.Add() in the Callback() method. That's going to release the wait handle before 'results' is updated. Just move the EndInvoke call...
View ArticleThreading Race
Rick Stephens wrote:Ok, well, that creates another level of complexity. Are you saying that I should modify the code to create x number of threads instead of using delegates? If that's so, how would...
View ArticleThreading Race
Ok, well, that creates another level of complexity. Are you saying that I should modify the code to create x number of threads instead of using delegates? If that's so, how would I go about passing...
View ArticleThreading Race
If you have one thread waiting on one or more other threads to complete, the fork/join pattern is the usual means of accomplishing this. You'd create x threads (new Thread...Thread.Start) then have...
View ArticleThreading Race
I've got a multithreaded app that I'm working on. The code below is the shell of it. "DoABunchOfWork" is a function that needs to go out and get info from any number of SOAP webservices(this code is...
View Article
More Pages to Explore .....