Ok guys, I need some guidance on how i would properly stop a thread from downloading, if a timeout supplied by the user has elapsed.
I have an array threads declared in the general area of the main form class. looks like this.
I start these threads in a for loop in a sub routine. I also start an array of timers, that will dictate when these threads should stop working, meaning a certian amount of time has passed. The question is how would i go about stopping these threads from downloading any more data safely? Without disposing of these threads completly. Since i will restart these threads again to do more work.. Any ideas guys?
Thanks..
I have an array threads declared in the general area of the main form class. looks like this.
VB.NET:
Private objThreads(100) As Thread
I start these threads in a for loop in a sub routine. I also start an array of timers, that will dictate when these threads should stop working, meaning a certian amount of time has passed. The question is how would i go about stopping these threads from downloading any more data safely? Without disposing of these threads completly. Since i will restart these threads again to do more work.. Any ideas guys?
Thanks..