I have an application that prints statements for customers. Depending on the user's database size, it can pull anywhere from 1,000 to 10,000 customers from the database and then needs to calculate each one's bills.
The application currently creates a thread to handle the process of creating all the statements, so the GUI thread stays responsive and gives progress feedback to the user.
On the low end with around 2,000 customers, the single worker thread processes in a reasonable time, assuming fairly recent hardware in the server and workstation. On the high end, this process can take 10 to 20 minutes to complete.
I'm been doing some reading on threading and improving my knowledge about threading. My question is:
Would it be a good idea to take each customer statement creation process and cast that off as a seperate thread?
I'm currently researching thread pooling and how this would be done, but I'm looking for some guidance from the experts on if this is a good idea or not.
Thanks,
Bernie
The application currently creates a thread to handle the process of creating all the statements, so the GUI thread stays responsive and gives progress feedback to the user.
On the low end with around 2,000 customers, the single worker thread processes in a reasonable time, assuming fairly recent hardware in the server and workstation. On the high end, this process can take 10 to 20 minutes to complete.
I'm been doing some reading on threading and improving my knowledge about threading. My question is:
Would it be a good idea to take each customer statement creation process and cast that off as a seperate thread?
I'm currently researching thread pooling and how this would be done, but I'm looking for some guidance from the experts on if this is a good idea or not.
Thanks,
Bernie