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 =)
1 answer
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