So at the minute i'm having quite the Problem with my Multi-Threaded App.
I get a list of things to complete, on each iteration of the loop I create a new instance of a class to process the data, each class containing a BackgroundWorker.
The problem is all of the threads dont seem to run at the same time, and I can only get 2 of the class instances to run at any one time. The List is also bound to a DataGrid indicating the progress of each operation.
Also, due to the Threads not all running at the same time, I also have the option to select an option in list and start the process. Starting the process keeps the other threads running but the UI locks up until one of the thread completes.
The code contained within the UI thread is pretty light-weight so i'm unsure as to why i'm getting lock ups.
I can't provide any code for this i'm afraid but I would appreciate places to look in the code and also tips on isolating the problem.
Question
MiG-
So at the minute i'm having quite the Problem with my Multi-Threaded App.
I get a list of things to complete, on each iteration of the loop I create a new instance of a class to process the data, each class containing a BackgroundWorker.
The problem is all of the threads dont seem to run at the same time, and I can only get 2 of the class instances to run at any one time. The List is also bound to a DataGrid indicating the progress of each operation.
Also, due to the Threads not all running at the same time, I also have the option to select an option in list and start the process. Starting the process keeps the other threads running but the UI locks up until one of the thread completes.
The code contained within the UI thread is pretty light-weight so i'm unsure as to why i'm getting lock ups.
I can't provide any code for this i'm afraid but I would appreciate places to look in the code and also tips on isolating the problem.
Cheers,
MiG
Link to comment
Share on other sites
6 answers to this question
Recommended Posts