I have the below code for creating threads and running them.
from concurrent.futures import ThreadPoolExecutor import threading def task(n): result = 0
from the docs:
New in version 3.6: The thread_name_prefix argument was added to allow users to control the threading.Thread names for worker threads created by the pool for easier debugging.