How do I call a method when all threads (backgroundWorkers) are done with their jobs in .NET

Posted by claws on Stack Overflow See other posts from Stack Overflow or by claws
Published on 2010-05-03T08:12:21Z Indexed on 2010/05/03 8:18 UTC
Read the original article Hit count: 205

Filed under:
|

Hello,

I'm using C# .NET. Its a GUI application. When user clicks a button work is assigned to 4 different background workers. Each take different amount of time and the end result is they populate some variables.

I need to call a method which operates on these end results of each bgwoeker and gives the final output. How to accomplish this?

Problem here is to be sure that all bgworkers are done with their job.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET