F
fniles
I am using VB.NET 2005 and thread.
In each thread I open a database connection and before it exits the thread I
close the database connection.
Is there any way for me to count how many threads are still working so that
if I know there is say 50 threads are working, I want to hold on and do not
create any more thread until the previous threads are finished ?
Thank you
In each thread I open a database connection and before it exits the thread I
close the database connection.
Is there any way for me to count how many threads are still working so that
if I know there is say 50 threads are working, I want to hold on and do not
create any more thread until the previous threads are finished ?
Thank you