N
Nicholas Beenham
Hi all,
Is there a way to set the lifespan of a thread.
I am trying to start a process that may or may not have an outcome and want
to finish it after a certain length of time finished or not.
So I have
Thread t = new Thread(new ThreadStart(targetMethod));
t.start();
how can I terminate t after a length of time I decide?
Thanks
Nick
Is there a way to set the lifespan of a thread.
I am trying to start a process that may or may not have an outcome and want
to finish it after a certain length of time finished or not.
So I have
Thread t = new Thread(new ThreadStart(targetMethod));
t.start();
how can I terminate t after a length of time I decide?
Thanks
Nick