In a project on asp.net
and mysql
, we need data from 4 different databases. For that we use the main thread, and get each datatable one by one in sequence and processes it. Now we need to optimize it, and we assume that we can save time by using threads to get datatables.
The main problem, I am assuming, how we let main thread to wait for all threads to complete?
Any Idea?
Thanks.