In Python, How Do You Call a Bound Function as a New Thread with the thread Module?

Problem scenario
You want to write a program to call a bound function in a new thread. How do you do this?

Run this program (e.g., python

import _thread as thread
 class mighty:
   def cool():
def contint():
if name == "main":
     foobar = thread.start_new_thread(, () )
     print("thread finished…exiting")

Leave a comment

Your email address will not be published. Required fields are marked *