I’m writing an application in WPF. I have one main thread and another one – where I calculate something. In main thread I need to do one operation after additional thread will be finished. I can’t use Join for additional thread, because I don’t want to block main thread. How I can wait for finishing second thread and at the same time don’t block main thread?
Share
The eaisest way is to use the backgroundworker and handle the RunWorkerCompleted event.
I also invite you to take a look Part 3 of
Joseph Albahari’s Threading in C# pdf