xxxxxxxxxx
import threading
def my_thread_function():
print("This is running on a separate thread")
# Create and start a new thread
my_thread = threading.Thread(target=my_thread_function)
my_thread.start()
# Continue with the main thread
print("This is running on the main thread")