- Jun
- 762
- 16
Because of an error in a script, I just launched a thread that I do not want (it's going to do something tomorrow rather than today). This made me realize that sometimes one might want to be able to kill a thread. Is there any way to do that?
My first thought was to have the thread report back its PID so that it could be killed, but I don't see any way to do that. Any other suggestions?
For this particular application, I probably could use DATEMONITOR, in which case the command could be used to cancel it.
My first thought was to have the thread report back its PID so that it could be killed, but I don't see any way to do that. Any other suggestions?
For this particular application, I probably could use DATEMONITOR, in which case the command could be used to cancel it.