Quantcast
Channel: Threading Race
Browsing index pages (5 articles)
↧

Threading 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


Threading 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 Article


Threading 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 Article

Threading 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 Article

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 Article

Browsing index pages (5 articles)


Latest Images