This is the example code I am using
import time import threading import re def do_action(): while True: x = threading.current_thread() pr