Is it possible from the main thread to complete another thread?

Hello, I want to make bot which will create additional threads which will loop forever. And then the question arose, whether from the main thread to delete this thread and then re-create? But it is not convenient to constantly log into the server, and restart the bot to have something added.
Please tell me =)
April 19th 20 at 12:11
1 answer
April 19th 20 at 12:13
Solution
Impossible. The thread must manage its life cycle. You can only send him signals through a shared variable or a synchronization primitive.

Find more questions by tags Python