-1

How do I kill a thread that was started with thread.start_new_thread? Thank you!

import thread

def test_thread():
    for i in range(100):
       sleep(1)
       print('time %r' % time())
    print('%r' % 'thread is done')

thread.start_new_thread(test_thread,())
Valentyn
  • 659
  • 1
  • 7
  • 28

1 Answers1

0

Here is the solution to my problem where the Thread can be paused and resumed on demand.

Valentyn
  • 659
  • 1
  • 7
  • 28