G
Guest
Hi,
I have a thread which runs in a loop. Between each loop cycle it sleeps for
10 seconds.
The problem is that if i'm aborting the thread during its sleep, the thread
will be aborted only after the sleep time is over meaning it can be up to 10
seconds.
Is there a way to force the abortion immediately without waiting for the
sleep to be over??
I'm using the following 2 lines to abort:
myThread.Abort();
myThread.Join();
Thanks!
I have a thread which runs in a loop. Between each loop cycle it sleeps for
10 seconds.
The problem is that if i'm aborting the thread during its sleep, the thread
will be aborted only after the sleep time is over meaning it can be up to 10
seconds.
Is there a way to force the abortion immediately without waiting for the
sleep to be over??
I'm using the following 2 lines to abort:
myThread.Abort();
myThread.Join();
Thanks!