I'm using Threading module in python to create a new thread . I know how to start a Thread and how to join
but I don't know how to terminate it while running.
So Any method to terminate or force stop a thread while running ?
Asked
Active
Viewed 32 times
1
-
Are you trying to kill the thread from another thread? – Mike67 Jul 24 '20 at 14:44
-
@Mike67 nope from the main thread – Jul 24 '20 at 14:47
-
1Check this article: https://www.geeksforgeeks.org/python-different-ways-to-kill-a-thread/ – Mike67 Jul 24 '20 at 14:50
-
Does this answer your question? [How to properly stop the Thread in Java?](https://stackoverflow.com/questions/10961714/how-to-properly-stop-the-thread-in-java) – Anmol Singh Jaggi Jul 24 '20 at 15:06