vb.net Threads to update datatable best way
Posted on 2013-01-11
I have a program that will query computers for some wmi information.
Put that information into a datatable.
I figured it would be nice to have it query maybe 3 or 4 computers at the same time and update one datatable.
For each computer in Computers
dim dt as new datatable
dt = GetCompInfo(computer.name) * Threaded sub returns it's own datatable.
As threads return I woudl then add their rows to the Public main datatable.
What is the best way to approach this?