Python kill thread

Python threading module provides _Thread_stop() and _Thread_delete() to kill threads.

>>> from threading import *
>>> for thread in enumerate():
... if (thread.isAlive()):
... thread._Thread_stop()
...





















endmemo.com © 2024  | Terms of Use | Privacy | Home