S
Steve
Hello,
I have a subroutine, sub1 that creates 2 new Threads.
Each Thread then runs a subroutine of their own. Sub1 is
on a timer and when called will create 2 new threads each
time. I observed the Windows Task Manager Performance Tab
for the count of threads, handles, processes. I let Sub1
run several times and create several threads. I thought
of terminating each thread with Thread.Abort. Task
Manager does show an increase in threads when Sub1 creates
the new threads. But when the subroutines in the new
threads have completed, the thread count goes down in Task
Manager whether I use Thread.Abort or not. I have not yet
tested sub1 for a several day interval.
Could someone advise me if I need to terminate these
threads if I will be creating new ones on a timed
schedule? Is Thread.Abort the correct way to terminate
these threads?
Thanks
I have a subroutine, sub1 that creates 2 new Threads.
Each Thread then runs a subroutine of their own. Sub1 is
on a timer and when called will create 2 new threads each
time. I observed the Windows Task Manager Performance Tab
for the count of threads, handles, processes. I let Sub1
run several times and create several threads. I thought
of terminating each thread with Thread.Abort. Task
Manager does show an increase in threads when Sub1 creates
the new threads. But when the subroutines in the new
threads have completed, the thread count goes down in Task
Manager whether I use Thread.Abort or not. I have not yet
tested sub1 for a several day interval.
Could someone advise me if I need to terminate these
threads if I will be creating new ones on a timed
schedule? Is Thread.Abort the correct way to terminate
these threads?
Thanks